From e5aa298da5598c651d500fd097ed8ff417458641 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 14 Mar 2006 19:07:36 +0000 Subject: * dcrt0.cc (main_environ): Initialize to &__cygwin_environment. (dll_crt0_1): Move resourcelocks, thread interface, pinfo_init, and uinfo_init... (dll_crt0_0): ...to here. (_dll_crt0): Call update_envptrs here after setting main_environ. * environ.cc (environ_init): Eliminate initted variable. Don't call update_envptrs here. * sigproc.cc (wait_sig): Use my_sendsig when calling CreatePipe to avoid a dereference. --- winsup/cygwin/sigproc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/sigproc.cc') diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 8f49320fa..0b22495c9 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -523,7 +523,7 @@ sig_send (_pinfo *p, int sig) else { #ifdef DEBUGGING - system_printf ("internal signal sent while signals are on hold"); + system_printf ("signal %d sent to %p while signals are on hold", p, sig); #endif return -1; } @@ -1073,11 +1073,11 @@ wait_sig (VOID *) /* Initialization */ SetThreadPriority (GetCurrentThread (), WAIT_SIG_PRIORITY); - if (!CreatePipe (&readsig, &myself->sendsig, sec_user_nih (sa_buf), 0)) + sigCONT = CreateEvent (&sec_none_nih, FALSE, FALSE, NULL); + if (!CreatePipe (&readsig, &my_sendsig, sec_user_nih (sa_buf), 0)) api_fatal ("couldn't create signal pipe, %E"); ProtectHandle (readsig); - sigCONT = CreateEvent (&sec_none_nih, FALSE, FALSE, NULL); - my_sendsig = myself->sendsig; + myself->sendsig = my_sendsig; /* Setting dwProcessId flags that this process is now capable of receiving signals. Prior to this, dwProcessId was set to the windows pid of -- cgit v1.2.3