OSDN Git Service

* pinfo.h (maybe_set_exit_code_from_windows): Renamed from set_exit_state.
authorcgf <cgf>
Mon, 17 Jan 2005 04:12:07 +0000 (04:12 +0000)
committercgf <cgf>
Mon, 17 Jan 2005 04:12:07 +0000 (04:12 +0000)
commit18292da6df9990a5fd5c61f2fd5860827938dbed
treee65d29812d48b02d1f8690ab38f40263c0ec62f4
parent78c26801f9aada6163e752c6cc1fe46c515ee336
* pinfo.h (maybe_set_exit_code_from_windows): Renamed from set_exit_state.
* pinfo.cc (pinfo::exit): Use renamed function.
(proc_waiter): Ditto.  Make a copy of input argument to avoid problems when
procs array is shuffled.  Flag when copy is made so that remove_proc knows when
it is safe to reshuffle.
* sigproc.cc (proc_terminate): Don't flag process_state as PID_EXITED.
(remove_proc): Wait for waiter to finish copying pinfo element before moving it
(an actual wait should be an extremely rare event).
winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc
winsup/cygwin/pinfo.h
winsup/cygwin/sigproc.cc