Skip site navigation (1) Skip section navigation (2)

Re: statistics process shutting down

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 (view raw or flat)
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

In response to

pgsql-hackers-win32 by date

Next:From: Merlin MoncureDate: 2004-11-30 21:01:48
Subject: Re: statistics process shutting down
Previous:From: Merlin MoncureDate: 2004-11-30 18:26:05
Subject: Re: statistics process shutting down

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group