Mercurial > emacs
changeset 56770:598599edd5ca
(process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]:
If there's no char for this signal, drop through and use system calls.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 22 Aug 2004 17:45:36 +0000 |
parents | 349245fdad22 |
children | f1b47174fed2 |
files | src/process.c |
diffstat | 1 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Sun Aug 22 17:43:26 2004 +0000 +++ b/src/process.c Sun Aug 22 17:45:36 2004 +0000 @@ -5578,8 +5578,12 @@ } if (sig_char && *sig_char != CDISABLE) - send_process (proc, sig_char, 1, Qnil); - return; + { + send_process (proc, sig_char, 1, Qnil); + return; + } + /* If we can't send the signal with a character, + fall through and send it another way. */ #else /* ! HAVE_TERMIOS */ /* On Berkeley descendants, the following IOCTL's retrieve the @@ -5636,9 +5640,12 @@ you'd better be using one of the alternatives above! */ #endif /* ! defined (TCGETA) */ #endif /* ! defined (TIOCGLTC) && defined (TIOCGETC) */ -#endif /* ! defined HAVE_TERMIOS */ + /* In this case, the code above should alway returns. */ abort (); - /* The code above always returns from the function. */ +#endif /* ! defined HAVE_TERMIOS */ + + /* The code above may fall through if it can't + handle the signal. */ #endif /* defined (SIGNALS_VIA_CHARACTERS) */ #ifdef TIOCGPGRP