Re: statistics process shutting down

Tom Lane <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
"Merlin Moncure" <[email protected]> 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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.