diff options
author | Christopher Faylor <me@cgf.cx> | 2003-11-28 22:13:57 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-11-28 22:13:57 +0000 |
commit | 13584f077b708083b9e1cba78ff580c7bae6130e (patch) | |
tree | 51b7e9b3c173d1e5234af8b57413814501589f07 /winsup/cygwin/signal.cc | |
parent | 74d893b13cb75408ec3ffe2b399787b9b78fa979 (diff) | |
download | newlib-13584f077b708083b9e1cba78ff580c7bae6130e.zip newlib-13584f077b708083b9e1cba78ff580c7bae6130e.tar.gz newlib-13584f077b708083b9e1cba78ff580c7bae6130e.tar.bz2 |
* pinfo.h (_pinfo::getsig): Remove obsolete function, here and throughout.
* exceptions.cc: Ditto.
* fhandler_termios.cc: Ditto.
* signal.cc: Ditto.
* sigproc.cc: Ditto.
* Makefile.in: Revert previous change which made a cygwin.din newer than a
version.h a warning rather than an error.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 9bf9eb0..311e730 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -56,12 +56,12 @@ signal (int sig, _sig_func_ptr func) return (_sig_func_ptr) SIG_ERR; } - prev = myself->getsig (sig).sa_handler; - myself->getsig (sig).sa_handler = func; - myself->getsig (sig).sa_mask = 0; + prev = global_sigs[sig].sa_handler; + global_sigs[sig].sa_handler = func; + global_sigs[sig].sa_mask = 0; /* SA_RESTART is set to maintain BSD compatible signal behaviour by default. This is also compatible with the behaviour of signal(2) in Linux. */ - myself->getsig (sig).sa_flags |= SA_RESTART; + global_sigs[sig].sa_flags |= SA_RESTART; set_sigcatchers (prev, func); syscall_printf ("%p = signal (%d, %p)", prev, sig, func); @@ -332,7 +332,7 @@ sigaction (int sig, const struct sigaction *newact, struct sigaction *oldact) return -1; } - struct sigaction oa = myself->getsig (sig); + struct sigaction oa = global_sigs[sig]; if (newact) { @@ -341,7 +341,7 @@ sigaction (int sig, const struct sigaction *newact, struct sigaction *oldact) set_errno (EINVAL); return -1; } - myself->getsig (sig) = *newact; + global_sigs[sig] = *newact; if (newact->sa_handler == SIG_IGN) sig_clear (sig); if (newact->sa_handler == SIG_DFL && sig == SIGCHLD) |