diff options
author | Christopher Faylor <me@cgf.cx> | 2011-11-26 02:35:49 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-11-26 02:35:49 +0000 |
commit | 1d04c4c6c36f307f79a5617bc62e1a766ce01355 (patch) | |
tree | ed3dfe5a96d9fe9353e5eb1927df7aa8f3a20a1e /winsup/cygwin/pinfo.cc | |
parent | 505bce274fe261526833f77f7bf24b33542da151 (diff) | |
download | cygnal-1d04c4c6c36f307f79a5617bc62e1a766ce01355.tar.gz cygnal-1d04c4c6c36f307f79a5617bc62e1a766ce01355.tar.bz2 cygnal-1d04c4c6c36f307f79a5617bc62e1a766ce01355.zip |
* exceptions.cc (sigpacket::process): Move signal_exit processing into...
(_cygtls::signal_exit): ...here. Close my_readsig and comment on why.
* pinfo.cc (pinfo::exit): Move sigproc_terminate earlier. Set exiting flag in
lock_process.
* sigproc.cc (my_readsig): Make global.
* sync.cc (muto::exiting_thread): Delete.
(muto::acquire): Delete #if 0'ed code.
* sync.h (muto::exiting_thread): Delete.
(set_exiting_thread): Ditto.
(lock_process::lock_process): Don't worry about setting the exiting thread
since it had no meaning.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 48a5a99b2..d3e68bf32 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -181,7 +181,8 @@ void pinfo::exit (DWORD n) { minimal_printf ("winpid %d, exit %d", GetCurrentProcessId (), n); - lock_process until_exit (); + sigproc_terminate (ES_FINAL); + lock_process until_exit (true); cygthread::terminate (); if (n != EXITCODE_NOSET) @@ -192,7 +193,6 @@ pinfo::exit (DWORD n) maybe_set_exit_code_from_windows (); } - sigproc_terminate (ES_FINAL); if (myself->ctty > 0 && !iscons_dev (myself->ctty)) { lock_ttys here; |