Re: logger subprocess including win32 - Mailing list pgsql-patches

From Tom Lane
Subject Re: logger subprocess including win32
Date
Msg-id 20481.1091734774@sss.pgh.pa.us
Whole thread Raw
In response to Re: logger subprocess including win32  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: logger subprocess including win32  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-patches
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> Tom Lane wrote:
>>   but I don't know how to do the equivalent in this threaded scheme
>> you've devised for Windows.

> In pipeThread:

> if (!ReadFile(...))
> {
>     DWORD error = GetLastError();
>     if (error == ERROR_HANDLE_EOF)
>        exit(0);

Got it.  And there's no reason that the pipe thread can't do exit(0)
for itself?  Might be cleaner to make it set a flag for the main line
to look at ...

            regards, tom lane

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: logger subprocess including win32
Next
From: Andreas Pflug
Date:
Subject: Re: logger subprocess including win32