diff options
author | Christopher Faylor <me@cgf.cx> | 2004-03-12 03:09:28 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-03-12 03:09:28 +0000 |
commit | 9863b78e7bc842bb1b860be12562e1f45b717aef (patch) | |
tree | 2fb5bb2f959861e0bc847526ed21c80936fefaae /winsup/cygwin/wait.cc | |
parent | 7ea8e226ee52772fed5215f5231b379db5498bd2 (diff) | |
download | cygnal-9863b78e7bc842bb1b860be12562e1f45b717aef.tar.gz cygnal-9863b78e7bc842bb1b860be12562e1f45b717aef.tar.bz2 cygnal-9863b78e7bc842bb1b860be12562e1f45b717aef.zip |
* cygtls.h (waitq): Declare structure here.
(_cygtls::wq): Declare.
* cygtls.cc (_cygtls::fixup_after_fork): Clear wq.thread_ev to avoid using an
invalid event handle in forked process.
* dcrt0.cc (waitq_storage): Delete.
(threadstuff): Remove waitq_storage.
* perthread.h (per_thread_waitq): Delete.
(waitq_storage): Delete declaration.
* sigproc.cc (sigproc_init): Remove perthread waitq consideration.
* sigproc.h (waitq): Delete declaration.
* wait.cc (wait4): Use _my_tls waitq structure rather than per_thread.
* cygtls.h (_cygtls::newmask): Delete member.
(_cygtls::deltamask): New member.
* gendef (_sigdelayed): Replace the call to set_process_mask by a call to
set_process_mask_delta.
* exceptions.cc (handle_sigsuspend): Do not filter tempmask. Or
SIG_NONMASKABLE in deltamask as a flag.
(_cygtls::interrupt_setup): Set deltamask only.
(set_process_mask_delta): New function.
(_cygtls::call_signal_handler): Replace the first call to set_process_mask by a
call to set_process_mask_delta.
* tlsoffsets.h: Regenerate.
Diffstat (limited to 'winsup/cygwin/wait.cc')
-rw-r--r-- | winsup/cygwin/wait.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/wait.cc b/winsup/cygwin/wait.cc index 789a7f309..fda951ead 100644 --- a/winsup/cygwin/wait.cc +++ b/winsup/cygwin/wait.cc @@ -47,8 +47,8 @@ extern "C" pid_t wait4 (int intpid, int *status, int options, struct rusage *r) { int res; - waitq *w; HANDLE waitfor; + waitq *w; pthread_testcancel (); @@ -65,8 +65,7 @@ wait4 (int intpid, int *status, int options, struct rusage *r) if (r) memset (r, 0, sizeof (*r)); - if ((w = (waitq *) waitq_storage.get ()) == NULL) - w = (waitq *) waitq_storage.create (); + w = &_my_tls.wq; w->pid = intpid; w->options = options; |