snapshot 20050114 race (on list)

Christopher Faylor me@cgf.cx
Sat Jan 22 18:00:00 GMT 2005


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



More information about the Cygwin-developers mailing list