Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-03-14 22:07:36 +0300
committerChristopher Faylor <me@cgf.cx>2006-03-14 22:07:36 +0300
commite5aa298da5598c651d500fd097ed8ff417458641 (patch)
tree49f4eb15dc154a99dc9106c70e67123f04b35432 /winsup/cygwin/sigproc.cc
parent3b731dc0e18a975b6627b0a821b68ceb41ec86ab (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc8
1 files changed, 4 insertions, 4 deletions
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