Re: logger subprocess including win32

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: logger subprocess including win32
Дата
Msg-id 20481.1091734774@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: logger subprocess including win32  (Andreas Pflug <pgadmin@pse-consulting.de>)
Ответы Re: logger subprocess including win32  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список 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 по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: logger subprocess including win32
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: logger subprocess including win32