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);

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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to