snapshot 20050114 race (on list)

Pierre A. Humblet pierre.humblet@ieee.org
Fri Jan 14 18:33:00 GMT 2005


Chris,

the race can come from the self->alert_parent (0);
in :exit, causing bash to think that the child
has exited when it's still running.
There may be a deeper issue, as the timing of Windows
closing the pipe and "closing" the process is not
under Cygwin's control.

There may also be a race (unrelated) between
setting the state to PID_ZOMBIE in the parent
and PID_EXITED in the child. This will affect
sigproc.cc:  if (!((terminated = (child->process_state == PID_ZOMBIE)) ||

I think there is no real need to distinguish between
PID_ZOMBIE and PID_EXITED.

Pierre



More information about the Cygwin-developers mailing list