diff src/sysdep.c @ 20948:a9a9a13079b4

(sys_sigpause): Removed. (new_action, old_action): Move as local variables into sys_signal. (old_mask, temp_mask): Removed.
author Andreas Schwab <schwab@suse.de>
date Fri, 20 Feb 1998 13:00:21 +0000
parents 22dd2d861e36
children fa9ff387d260
line wrap: on
line diff
--- a/src/sysdep.c	Fri Feb 20 11:15:28 1998 +0000
+++ b/src/sysdep.c	Fri Feb 20 13:00:21 1998 +0000
@@ -2727,8 +2727,7 @@
 
 #ifdef POSIX_SIGNALS
 
-sigset_t old_mask, empty_mask, full_mask, temp_mask;
-static struct sigaction new_action, old_action;
+sigset_t empty_mask, full_mask;
 
 init_signals ()
 {
@@ -2739,6 +2738,7 @@
 signal_handler_t
 sys_signal (int signal_number, signal_handler_t action)
 {
+  struct sigaction new_action, old_action;
   sigemptyset (&new_action.sa_mask);
   new_action.sa_handler = action;
 #ifdef SA_RESTART
@@ -2766,14 +2766,6 @@
 }
 #endif
 
-int
-sys_sigpause (sigset_t new_mask)
-{
-  /* pause emulating berk sigpause... */
-  sigsuspend (&new_mask);
-  return (EINTR);
-}
-
 /* I'd like to have these guys return pointers to the mask storage in here,
    but there'd be trouble if the code was saving multiple masks.  I'll be
    safe and pass the structure.  It normally won't be more than 2 bytes