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 down"?
Regards,
Andreas