(sys_sigpause): Removed.
authorAndreas Schwab <schwab@suse.de>
Fri, 20 Feb 1998 13:00:21 +0000 (13:00 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 20 Feb 1998 13:00:21 +0000 (13:00 +0000)
(new_action, old_action): Move as local variables into sys_signal.
(old_mask, temp_mask): Removed.

src/sysdep.c

index 240b0f8..6c1c088 100644 (file)
@@ -2727,8 +2727,7 @@ sigbit (i)
 
 #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 @@ init_signals ()
 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 @@ sys_sigmask (int sig)
 }
 #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