mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Unpend fault signals like SIGSEGV, etc
It is too dangerous to continue with them in any case Should go into 2.2
This commit is contained in:
parent
4ea1bb912c
commit
d7f5ee41e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23513
1 changed files with 4 additions and 4 deletions
|
@ -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.33 1997/02/25 14:05:03 brian Exp $
|
||||
* $Id: main.c,v 1.34 1997/03/08 10:04:21 ache Exp $
|
||||
*
|
||||
* TODO:
|
||||
* o Add commands for traffic summary, version display, etc.
|
||||
|
@ -348,15 +348,15 @@ char **argv;
|
|||
|
||||
tcgetattr(0, &oldtio); /* Save original tty mode */
|
||||
|
||||
pending_signal(SIGHUP, Hangup);
|
||||
signal(SIGHUP, Hangup);
|
||||
signal(SIGTERM, CloseSession);
|
||||
signal(SIGINT, CloseSession);
|
||||
signal(SIGQUIT, CloseSession);
|
||||
#ifdef SIGSEGV
|
||||
pending_signal(SIGSEGV, Hangup);
|
||||
signal(SIGSEGV, Hangup);
|
||||
#endif
|
||||
#ifdef SIGPIPE
|
||||
pending_signal(SIGPIPE, Hangup);
|
||||
signal(SIGPIPE, Hangup);
|
||||
#endif
|
||||
#ifdef SIGALRM
|
||||
signal(SIGALRM, SIG_IGN);
|
||||
|
|
Loading…
Reference in a new issue