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