aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 240b0f8a6b0..6c1c0885e85 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2727,8 +2727,7 @@ sigbit (i)
2727 2727
2728#ifdef POSIX_SIGNALS 2728#ifdef POSIX_SIGNALS
2729 2729
2730sigset_t old_mask, empty_mask, full_mask, temp_mask; 2730sigset_t empty_mask, full_mask;
2731static struct sigaction new_action, old_action;
2732 2731
2733init_signals () 2732init_signals ()
2734{ 2733{
@@ -2739,6 +2738,7 @@ init_signals ()
2739signal_handler_t 2738signal_handler_t
2740sys_signal (int signal_number, signal_handler_t action) 2739sys_signal (int signal_number, signal_handler_t action)
2741{ 2740{
2741 struct sigaction new_action, old_action;
2742 sigemptyset (&new_action.sa_mask); 2742 sigemptyset (&new_action.sa_mask);
2743 new_action.sa_handler = action; 2743 new_action.sa_handler = action;
2744#ifdef SA_RESTART 2744#ifdef SA_RESTART
@@ -2766,14 +2766,6 @@ sys_sigmask (int sig)
2766} 2766}
2767#endif 2767#endif
2768 2768
2769int
2770sys_sigpause (sigset_t new_mask)
2771{
2772 /* pause emulating berk sigpause... */
2773 sigsuspend (&new_mask);
2774 return (EINTR);
2775}
2776
2777/* I'd like to have these guys return pointers to the mask storage in here, 2769/* I'd like to have these guys return pointers to the mask storage in here,
2778 but there'd be trouble if the code was saving multiple masks. I'll be 2770 but there'd be trouble if the code was saving multiple masks. I'll be
2779 safe and pass the structure. It normally won't be more than 2 bytes 2771 safe and pass the structure. It normally won't be more than 2 bytes