Re: logger subprocess including win32

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: logger subprocess including win32
Date: 2004-08-05 19:39:34
Message-ID: 20481.1091734774@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Andreas Pflug <pgadmin(at)pse-consulting(dot)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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andreas Pflug 2004-08-05 21:35:01 Re: logger subprocess including win32
Previous Message Andreas Pflug 2004-08-05 19:22:58 Re: Win32 tablespace