diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-01 17:15:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-01 17:15:01 +0000 |
commit | 4eab146fc7e6e1bf73fba64bac39c954b11954f9 (patch) | |
tree | d784a1b5d9ced71f92d3a75717e0ef501886e193 /winsup/cygwin/exceptions.cc | |
parent | a14d65557ae36ff4de926b9bd4cc4010917a09c5 (diff) | |
download | cygnal-4eab146fc7e6e1bf73fba64bac39c954b11954f9.tar.gz cygnal-4eab146fc7e6e1bf73fba64bac39c954b11954f9.tar.bz2 cygnal-4eab146fc7e6e1bf73fba64bac39c954b11954f9.zip |
* exceptions.cc (sigpacket::process): Pass actual reference to signal's
sigaction structure to setup_handler.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 73f5cfd5e..649f93fde 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1082,7 +1082,7 @@ sigpacket::process () int rc = 1; sigproc_printf ("signal %d processing", si.si_signo); - struct sigaction thissig = global_sigs[si.si_signo]; + struct sigaction& thissig = global_sigs[si.si_signo]; myself->rusage_self.ru_nsignals++; @@ -1182,7 +1182,8 @@ stop: if (ISSTATE (myself, PID_STOPPED)) goto done; handler = (void *) sig_handle_tty_stop; - thissig = global_sigs[SIGSTOP]; + struct sigaction dummy = global_sigs[SIGSTOP]; + thissig = dummy; dosig: /* Dispatch to the appropriate function. */ |