diff options
| author | Richard M. Stallman | 2004-08-22 17:45:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-08-22 17:45:36 +0000 |
| commit | f1c206fcfb5a6b1b63d469c7dcf385a5d08621a2 (patch) | |
| tree | 7f36d6c008dd92631f0b989d0a72d8bf23303960 /src/process.c | |
| parent | 6320244170e24dd3b1978d7e83f23db9c6071521 (diff) | |
| download | emacs-f1c206fcfb5a6b1b63d469c7dcf385a5d08621a2.tar.gz emacs-f1c206fcfb5a6b1b63d469c7dcf385a5d08621a2.zip | |
(process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]:
If there's no char for this signal, drop through and use system calls.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c index 21ab46f0d85..d20290813e1 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5578,8 +5578,12 @@ process_send_signal (process, signo, current_group, nomsg) | |||
| 5578 | } | 5578 | } |
| 5579 | 5579 | ||
| 5580 | if (sig_char && *sig_char != CDISABLE) | 5580 | if (sig_char && *sig_char != CDISABLE) |
| 5581 | send_process (proc, sig_char, 1, Qnil); | 5581 | { |
| 5582 | return; | 5582 | send_process (proc, sig_char, 1, Qnil); |
| 5583 | return; | ||
| 5584 | } | ||
| 5585 | /* If we can't send the signal with a character, | ||
| 5586 | fall through and send it another way. */ | ||
| 5583 | #else /* ! HAVE_TERMIOS */ | 5587 | #else /* ! HAVE_TERMIOS */ |
| 5584 | 5588 | ||
| 5585 | /* On Berkeley descendants, the following IOCTL's retrieve the | 5589 | /* On Berkeley descendants, the following IOCTL's retrieve the |
| @@ -5636,9 +5640,12 @@ process_send_signal (process, signo, current_group, nomsg) | |||
| 5636 | you'd better be using one of the alternatives above! */ | 5640 | you'd better be using one of the alternatives above! */ |
| 5637 | #endif /* ! defined (TCGETA) */ | 5641 | #endif /* ! defined (TCGETA) */ |
| 5638 | #endif /* ! defined (TIOCGLTC) && defined (TIOCGETC) */ | 5642 | #endif /* ! defined (TIOCGLTC) && defined (TIOCGETC) */ |
| 5639 | #endif /* ! defined HAVE_TERMIOS */ | 5643 | /* In this case, the code above should alway returns. */ |
| 5640 | abort (); | 5644 | abort (); |
| 5641 | /* The code above always returns from the function. */ | 5645 | #endif /* ! defined HAVE_TERMIOS */ |
| 5646 | |||
| 5647 | /* The code above may fall through if it can't | ||
| 5648 | handle the signal. */ | ||
| 5642 | #endif /* defined (SIGNALS_VIA_CHARACTERS) */ | 5649 | #endif /* defined (SIGNALS_VIA_CHARACTERS) */ |
| 5643 | 5650 | ||
| 5644 | #ifdef TIOCGPGRP | 5651 | #ifdef TIOCGPGRP |