From: Richard M. Stallman Date: Sun, 22 Aug 2004 17:45:36 +0000 (+0000) Subject: (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: X-Git-Tag: ttn-vms-21-2-B4~5197 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1c206fcfb5a6b1b63d469c7dcf385a5d08621a2;p=emacs.git (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: If there's no char for this signal, drop through and use system calls. --- 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) } 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 @@ process_send_signal (process, signo, current_group, nomsg) 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