summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-08-22 17:45:36 +0000
committerRichard M. Stallman <rms@gnu.org>2004-08-22 17:45:36 +0000
commitf1c206fcfb5a6b1b63d469c7dcf385a5d08621a2 (patch)
tree7f36d6c008dd92631f0b989d0a72d8bf23303960 /src/process.c
parent6320244170e24dd3b1978d7e83f23db9c6071521 (diff)
(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.c15
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)
}
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