From 9863b78e7bc842bb1b860be12562e1f45b717aef Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 12 Mar 2004 03:09:28 +0000 Subject: * 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. --- winsup/cygwin/dcrt0.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 1848fa8e9..90f6ac8dc 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -44,12 +44,11 @@ details. */ HANDLE NO_COPY hMainProc = (HANDLE) -1; HANDLE NO_COPY hMainThread; -per_thread_waitq NO_COPY waitq_storage; #ifdef NEWVFORK per_thread_vfork NO_COPY vfork_storage; #endif -per_thread NO_COPY *threadstuff[] = {&waitq_storage, +per_thread NO_COPY *threadstuff[] = { #ifdef NEWVFORK &vfork_storage, #endif -- cgit v1.2.3