Re: [PATCHES] logger subprocess including win32

2004-08-05 Thread Andreas Pflug
Tom Lane wrote: 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? Not really. All threads are equivalent. BTW, should there be a last NOTICE "syslogger shutting

Re: [PATCHES] logger subprocess including win32

2004-08-05 Thread Tom Lane
Andreas Pflug <[EMAIL PROTECTED]> 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);

Re: [PATCHES] logger subprocess including win32

2004-08-05 Thread Andreas Pflug
Tom Lane wrote: Andreas Pflug <[EMAIL PROTECTED]> writes: Attached the patch, an orgy in #ifdefs, decorated with various indents and crlf line ends (glad we have pgindent). I spent a fair amount of time fooling with this, trying to extract something that I trusted enough to apply at this late dat

Re: [PATCHES] logger subprocess including win32

2004-08-05 Thread Tom Lane
Andreas Pflug <[EMAIL PROTECTED]> writes: > Attached the patch, an orgy in #ifdefs, decorated with various indents > and crlf line ends (glad we have pgindent). I spent a fair amount of time fooling with this, trying to extract something that I trusted enough to apply at this late date, but got s