OSDN Git Service

* fork.cc (fork_parent): Reinstate "childhProc" protection. Don't close
authorcgf <cgf>
Mon, 6 Dec 2004 00:29:38 +0000 (00:29 +0000)
committercgf <cgf>
Mon, 6 Dec 2004 00:29:38 +0000 (00:29 +0000)
commit1b3d8bd69087953a65dadda2b1b88dad47ddd755
tree213d03a0bc7da2078de944121e416dbe1aec58fe
parent78e88711a49fa74d36986bdb9c4328f9aeebc343
* fork.cc (fork_parent): Reinstate "childhProc" protection.  Don't close
hProcess handle here since it is used to ensure that a new process isn't
created with the old pid after the old pid exits.
* spawn.cc (spawn_guts): Ditto.
* pinfo.cc (proc_waiter): Don't send any signals if we've execed since this
process doesn't officially exist.
* pinfo.h (pinfo::pid_handle): Eliminate.  Just use hProc.
* sigproc.cc (sig_send): Don't send any signals if our sendsig doesn't exist.
That's a sign that we are execing.
(remove_proc): Eliminate pid_handle close.
winsup/cygwin/ChangeLog
winsup/cygwin/fork.cc
winsup/cygwin/pinfo.cc
winsup/cygwin/pinfo.h
winsup/cygwin/sigproc.cc
winsup/cygwin/spawn.cc