mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Unpend all killing signals to shut down this thing immediately,
or it is impossible to kill it in some situations. Unpend yet one SIGARLM (see timer.c commit) Should go into 2.2
This commit is contained in:
parent
ee5f208d63
commit
06257ca4f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23505
2 changed files with 9 additions and 9 deletions
|
@ -18,7 +18,7 @@
|
|||
* Columbus, OH 43221
|
||||
* (614)451-1883
|
||||
*
|
||||
* $Id: chat.c,v 1.16 1997/02/22 16:10:06 peter Exp $
|
||||
* $Id: chat.c,v 1.17 1997/02/25 14:04:55 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
* o Support more UUCP compatible control sequences.
|
||||
|
@ -404,9 +404,9 @@ char *command, *out;
|
|||
pipe(fids);
|
||||
pid = fork();
|
||||
if (pid == 0) {
|
||||
pending_signal(SIGINT, SIG_DFL);
|
||||
pending_signal(SIGQUIT, SIG_DFL);
|
||||
pending_signal(SIGTERM, SIG_DFL);
|
||||
signal(SIGINT, SIG_DFL);
|
||||
signal(SIGQUIT, SIG_DFL);
|
||||
signal(SIGTERM, SIG_DFL);
|
||||
pending_signal(SIGHUP, SIG_DFL);
|
||||
close(fids[0]);
|
||||
dup2(fids[1], 1);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: main.c,v 1.32 1997/02/22 16:10:32 peter Exp $
|
||||
* $Id: main.c,v 1.33 1997/02/25 14:05:03 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
* o Add commands for traffic summary, version display, etc.
|
||||
|
@ -349,9 +349,9 @@ char **argv;
|
|||
tcgetattr(0, &oldtio); /* Save original tty mode */
|
||||
|
||||
pending_signal(SIGHUP, Hangup);
|
||||
pending_signal(SIGTERM, CloseSession);
|
||||
pending_signal(SIGINT, CloseSession);
|
||||
pending_signal(SIGQUIT, CloseSession);
|
||||
signal(SIGTERM, CloseSession);
|
||||
signal(SIGINT, CloseSession);
|
||||
signal(SIGQUIT, CloseSession);
|
||||
#ifdef SIGSEGV
|
||||
pending_signal(SIGSEGV, Hangup);
|
||||
#endif
|
||||
|
@ -359,7 +359,7 @@ char **argv;
|
|||
pending_signal(SIGPIPE, Hangup);
|
||||
#endif
|
||||
#ifdef SIGALRM
|
||||
pending_signal(SIGALRM, SIG_IGN);
|
||||
signal(SIGALRM, SIG_IGN);
|
||||
#endif
|
||||
if(mode & MODE_INTER)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue