diff options
author | Christopher Faylor <me@cgf.cx> | 2004-03-16 05:05:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-03-16 05:05:22 +0000 |
commit | fbdfd5f8a916990de4c7791e7398120b7e34d6c1 (patch) | |
tree | 1c5dc7818fc58fbc60e13626bacd429608b0c3aa /winsup | |
parent | e867f8f1d48c59b55f42e222ede2bfa60d1c9786 (diff) | |
download | newlib-fbdfd5f8a916990de4c7791e7398120b7e34d6c1.zip newlib-fbdfd5f8a916990de4c7791e7398120b7e34d6c1.tar.gz newlib-fbdfd5f8a916990de4c7791e7398120b7e34d6c1.tar.bz2 |
* sigproc.cc (proc_terminate): Release sync_proc_subproc when done terminating
or suffer potential hangs.
(get_proc_lock): Reorganize debugging output slightly.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/sigproc.cc | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 51d09dd..c4e89b5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2004-03-16 Christopher Faylor <cgf@redhat.com> + + * sigproc.cc (proc_terminate): Release sync_proc_subproc when done + terminating or suffer potential hangs. + (get_proc_lock): Reorganize debugging output slightly. + 2004-03-15 Christopher Faylor <cgf@redhat.com> * cygtls.cc (_cygtls::fixup_after_fork): Just manipulate the signal diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index c786153..a04ea2f 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -214,7 +214,7 @@ get_proc_lock (DWORD what, DWORD val) sigproc_printf ("sync_proc_subproc is NULL (2)"); return false; } - system_printf ("Couldn't aquire sync_proc_subproc for(%d,%d), %E, last %d", + system_printf ("Couldn't aquire sync_proc_subproc for(%d,%d), last %d, %E", what, val, lastwhat); return true; } @@ -538,6 +538,7 @@ proc_terminate (void) pchildren[i].release (); } nchildren = nzombies = 0; + sync_proc_subproc->release (); } sigproc_printf ("leaving"); } |