diff options
| author | Jim Blandy | 1993-05-19 22:01:35 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-19 22:01:35 +0000 |
| commit | 00eaaa321cbd33275bd2cece992824999cf7a5cf (patch) | |
| tree | 13e418975952ad2401cf6fb78187b7c61ddaa1aa /src/sysdep.c | |
| parent | 0674a1f9461cd79ea06e8b2e9b1e7cd6401f8fc5 (diff) | |
| download | emacs-00eaaa321cbd33275bd2cece992824999cf7a5cf.tar.gz emacs-00eaaa321cbd33275bd2cece992824999cf7a5cf.zip | |
Some changes from Michael K. Johnson for Linux.
* sysdep.c (sys_siglist): Don't define this if HAVE_SYS_SIGLIST is
#defined. That lets the system provide it, if it has it.
* syssignal.h (sigmask): Only define this if <signal.h> hasn't
given us a definition already.
* syssignal.h (sys_sigpause): Fix argument in prototype.
* sysdep.c (init_signals): The masks are called empty_mask and
full_mask, not signal_empty_mask and signal_full_mask.
(signal_handler_t): Moved ....
* syssignal.h: ... to here.
* systty.h (EMACS_SET_TTY_PGRP): Call tcsetpgrp with the correct
arguments.
* emacs.c (main): Don't try to establish signal handlers for
SIGBUS and SIGSYS unless they're actually #defined.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index a6c1bdfbb34..99df6865338 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -2040,14 +2040,10 @@ static struct sigaction new_action, old_action; | |||
| 2040 | 2040 | ||
| 2041 | init_signals () | 2041 | init_signals () |
| 2042 | { | 2042 | { |
| 2043 | #ifdef POSIX_SIGNALS | 2043 | sigemptyset (&empty_mask); |
| 2044 | sigemptyset (&signal_empty_mask); | 2044 | sigfillset (&full_mask); |
| 2045 | sigfillset (&signal_full_mask); | ||
| 2046 | #endif | ||
| 2047 | } | 2045 | } |
| 2048 | 2046 | ||
| 2049 | int (*signal_handler_t) (); | ||
| 2050 | |||
| 2051 | signal_handler_t | 2047 | signal_handler_t |
| 2052 | sys_signal (int signal_number, signal_handler_t action) | 2048 | sys_signal (int signal_number, signal_handler_t action) |
| 2053 | { | 2049 | { |
| @@ -2417,6 +2413,7 @@ sys_write (fildes, buf, nbyte) | |||
| 2417 | * always negligible. Fred Fish, Unisoft Systems Inc. | 2413 | * always negligible. Fred Fish, Unisoft Systems Inc. |
| 2418 | */ | 2414 | */ |
| 2419 | 2415 | ||
| 2416 | #ifndef HAVE_SYS_SIGLIST | ||
| 2420 | char *sys_siglist[NSIG + 1] = | 2417 | char *sys_siglist[NSIG + 1] = |
| 2421 | { | 2418 | { |
| 2422 | #ifdef AIX | 2419 | #ifdef AIX |
| @@ -2477,6 +2474,7 @@ char *sys_siglist[NSIG + 1] = | |||
| 2477 | #endif /* not AIX */ | 2474 | #endif /* not AIX */ |
| 2478 | 0 | 2475 | 0 |
| 2479 | }; | 2476 | }; |
| 2477 | #endif HAVE_SYS_SIGLIST | ||
| 2480 | 2478 | ||
| 2481 | /* | 2479 | /* |
| 2482 | * Warning, this function may not duplicate 4.2 action properly | 2480 | * Warning, this function may not duplicate 4.2 action properly |