From 3ef50005c759d5dbdb5a7b31730bf836a6519ab0 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 9 Sep 2003 03:11:31 +0000 Subject: * dcrt0.cc (dlL_crt0_1): Set __argc_safe after __argc is absolutely know to be set. * exceptions.cc (sig_handle_tty_stop): Don't reset sigCONT event since it is reset automatically. * fork.cc (fork): Remove obsolete usage of PID_SPLIT_HEAP. * include/sys/cygwin.h: Ditto. * sigproc.cc (sig_send): Use sigframe init method to set frame since it checks for previous ownership of the frame. * sigproc.h (sigframe::init): Accept an "is_exception" argument. --- winsup/cygwin/exceptions.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index feffcd3d2..3a599f989 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -618,7 +618,6 @@ sig_handle_tty_stop (int sig) myself->pid, sig, myself->ppid_handle); if (WaitForSingleObject (sigCONT, INFINITE) != WAIT_OBJECT_0) api_fatal ("WaitSingleObject failed, %E"); - (void) ResetEvent (sigCONT); return; } } @@ -1048,23 +1047,23 @@ sig_handle (int sig) goto dosig; - stop: +stop: /* Eat multiple attempts to STOP */ if (ISSTATE (myself, PID_STOPPED)) goto done; handler = (void *) sig_handle_tty_stop; thissig = myself->getsig (SIGSTOP); - dosig: +dosig: /* Dispatch to the appropriate function. */ sigproc_printf ("signal %d, about to call %p", sig, handler); rc = setup_handler (sig, handler, thissig); - done: +done: sigproc_printf ("returning %d", rc); return rc; - exit_sig: +exit_sig: if (sig == SIGQUIT || sig == SIGABRT) { CONTEXT c; -- cgit v1.2.3