comparison src/process.c @ 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 1686b397ef16
children d27beaf1c61c 22658e29bd48 d8411455de48
comparison
equal deleted inserted replaced
56769:349245fdad22 56770:598599edd5ca
5576 #endif 5576 #endif
5577 break; 5577 break;
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
5586 current control characters. */ 5590 current control characters. */
5587 #if defined (TIOCGLTC) && defined (TIOCGETC) 5591 #if defined (TIOCGLTC) && defined (TIOCGETC)
5634 Your configuration files are messed up. 5638 Your configuration files are messed up.
5635 /* If your system configuration files define SIGNALS_VIA_CHARACTERS, 5639 /* If your system configuration files define SIGNALS_VIA_CHARACTERS,
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) */
5643 /* In this case, the code above should alway returns. */
5644 abort ();
5639 #endif /* ! defined HAVE_TERMIOS */ 5645 #endif /* ! defined HAVE_TERMIOS */
5640 abort (); 5646
5641 /* The code above always returns from the function. */ 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
5645 /* Get the current pgrp using the tty itself, if we have that. 5652 /* Get the current pgrp using the tty itself, if we have that.
5646 Otherwise, use the pty to get the pgrp. 5653 Otherwise, use the pty to get the pgrp.