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

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
     joining column's datatypes do not match

Reply via email to