"Merlin Moncure" <merlin.moncure@rcsonline.com> writes:
> Ah. My bad.
> /backend/port/win32/socket.c
> static void
> TranslateSocketError(void) etc. This puts the value in errno like it is
> suppoed to be.
Hmm. I am strongly tempted to remove src/port/pipe.c and put it into
src/backend/port/win32/socket.c, so it can share this function.
> MS recv() does not (I checked) so this is definately a
> bug in pipe.c, since it is reasonable for the caller to expect errno to
> be set to something.
Can you provide a patch? I'm hesitant to hack code I don't have the
means to test.
regards, tom lane