This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

snapshot 20050114 race (on list)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]