This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
snapshot 20050114 race (on list)
- From: "Pierre A. Humblet" <pierre dot humblet at ieee dot org>
- To: cygwin-developers at cygwin dot com
- Date: Fri, 14 Jan 2005 13:33:51 -0500
- Subject: snapshot 20050114 race (on list)
- Reply-to: pierre dot humblet at ieee dot org
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