diff options
author | Christopher Faylor <me@cgf.cx> | 2005-07-06 00:20:48 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-07-06 00:20:48 +0400 |
commit | d3b593aa446dd87422aa83411177cd0b8248bec7 (patch) | |
tree | 35708d94b2878eb4f755c1cdf734672765890836 /winsup | |
parent | 57000a5d5cce78ba74aa80a4b183400958a9095a (diff) |
* dcrt0.cc (cygwin_exit): Mark as "noreturn".
* sigproc.cc (child_info::ready): Don't signal parent that we are a cygwin
process if we are dynamically loaded.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/sigproc.cc | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 873218d63..706f7f2d5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,11 @@ 2005-07-05 Christopher Faylor <cgf@timesys.com> + * dcrt0.cc (cygwin_exit): Mark as "noreturn". + * sigproc.cc (child_info::ready): Don't signal parent that we are a + cygwin process if we are dynamically loaded. + +2005-07-05 Christopher Faylor <cgf@timesys.com> + * malloc.cc: Update to version 2.8.2. 2005-07-05 Corinna Vinschen <corinna@vinschen.de> diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 415444682..b55aeca65 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -41,7 +41,7 @@ details. */ #define PREMAIN_LEN (sizeof (user_data->premain) / sizeof (user_data->premain[0])) -extern "C" void cygwin_exit (int); +extern "C" void cygwin_exit (int) __attribute__ ((noreturn)); void ld_preload (); diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 3c7d19f40..93844c48a 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -771,7 +771,9 @@ child_info::ready (bool execed) return; } - if (!SetEvent (subproc_ready)) + if (dynamically_loaded) + sigproc_printf ("not really ready"); + else if (!SetEvent (subproc_ready)) api_fatal ("SetEvent failed"); else sigproc_printf ("signalled %p that I was ready", subproc_ready); |