This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: snapshot 20050114 race (on list)
On Wed, Jan 19, 2005 at 10:30:12AM -0500, Pierre A. Humblet wrote:
>A similar issue of Cygwin vs. Windows process termination time occurs
>when proc_waiter calls maybe_set_exit_code_from_windows().
>
>GetExitCodeProcess might well return STILL_ACTIVE. It's unsafe to poll
>until that value changes, so there should be a WaitFor(hProcess). No
>further WaitFor is necessary when calling set_exit_code when exiting
>after a spawn.
I've lost track. Have you actually demonstrated that there is a race
due to the closing of the pipe on process termination?
cgf