From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> |
Cc: | "Win 32 hackers PGSQL" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: statistics process shutting down |
Date: | 2004-11-30 20:45:04 |
Message-ID: | 24231.1101847504@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers-win32 |
"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> writes:
> if (ret < 0)
> {
> int wsa_errno;
> wsa_errno = WSAGetLastError();
> if (WSAECONNRESET == wsa_errno)
> { /* EOF on the pipe! (win32 socket based implementation) */
> ret = 0;
> }
> else
> {
> errno = wsa_errno; /* this *might* be ok */
> }
> }
> Maybe Magnus might comment here. This doesn't explain why the read call
> is failing but I'm pretty sure the error code is not being properly
> returned.
I recall a lot of angst about whether the encoding of WSAGetLastError()
is compatible with errno values, but I forget what the conclusion was.
Can we just assign to errno like that, or do we need a mapping function?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2004-11-30 21:01:48 | Re: statistics process shutting down |
Previous Message | Merlin Moncure | 2004-11-30 18:26:05 | Re: statistics process shutting down |