diff options
| author | Andreas Schwab | 1998-02-20 13:00:21 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1998-02-20 13:00:21 +0000 |
| commit | c639b0e327da46ab5328ef644576f8a1f987410e (patch) | |
| tree | ecd11db3019202ad4522022c6d836663875558a3 /src | |
| parent | 55e2a603da46526b3cc838738822dc5f247962de (diff) | |
| download | emacs-c639b0e327da46ab5328ef644576f8a1f987410e.tar.gz emacs-c639b0e327da46ab5328ef644576f8a1f987410e.zip | |
(sys_sigpause): Removed.
(new_action, old_action): Move as local variables into sys_signal.
(old_mask, temp_mask): Removed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 12 |
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 | ||
| 2730 | sigset_t old_mask, empty_mask, full_mask, temp_mask; | 2730 | sigset_t empty_mask, full_mask; |
| 2731 | static struct sigaction new_action, old_action; | ||
| 2732 | 2731 | ||
| 2733 | init_signals () | 2732 | init_signals () |
| 2734 | { | 2733 | { |
| @@ -2739,6 +2738,7 @@ init_signals () | |||
| 2739 | signal_handler_t | 2738 | signal_handler_t |
| 2740 | sys_signal (int signal_number, signal_handler_t action) | 2739 | sys_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 | ||
| 2769 | int | ||
| 2770 | sys_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 |