From a7cde2b98a658522f552a7ac7ae0a9ef07981e0a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 17 Jan 2001 14:57:09 +0000 Subject: * autoload.cc (LoadDLLinitfunc): Remove debugging statement. * exceptions.cc (sig_handle_tty_stop): Move setting of PID_STOPPED to earlier in interrupt. ((interrupt_setup): i.e., here. (sig_handle): Don't queue multiple SIGSTOPS. * fhandler.h (bg_check_types): Enumerate return value of bg_check for clarity. * signal.cc (kill_pgrp): Minor cleanup. * fhandler_termios.cc (fhandler_termios::bg_check): Use enumerated type for function return. Don't raise signal if a signal is already queued. * fhandler_console.cc (fhandler_console::read): Use enumerated return type for bg_check. * select.cc: Ditto, throughout. * read.cc: Ditto, throughout. * termios.cc: Ditto, throughout. (_read): YA interrupt detect simplification. * wait.cc (wait4): Ditto. --- winsup/cygwin/sigproc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/sigproc.cc') diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 21b325dde..d7493d1be 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -1150,8 +1150,8 @@ wait_sig (VOID *) saw_sigchld = 1; if (sig > 0 && sig != SIGKILL && sig != SIGSTOP && - (sigismember (& myself->getsigmask (), sig) || - (sig != SIGCONT && myself->process_state & PID_STOPPED))) + (sigismember (&myself->getsigmask (), sig) || + (sig != SIGCONT && ISSTATE (myself, PID_STOPPED)))) { sigproc_printf ("sig %d blocked", sig); break; -- cgit v1.2.3