diff options
author | brian <brian@FreeBSD.org> | 1997-03-13 12:45:35 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-03-13 12:45:35 +0000 |
commit | db1507dc21cd44caa52ead85f9a6a42d0d986982 (patch) | |
tree | fa504756c008684108eea2200c879f5791919788 /usr.sbin/ppp/chat.c | |
parent | d595a2d0872984b79873b4152ae4550b61e185a6 (diff) | |
download | FreeBSD-src-db1507dc21cd44caa52ead85f9a6a42d0d986982.zip FreeBSD-src-db1507dc21cd44caa52ead85f9a6a42d0d986982.tar.gz |
Reviewed by: ache@freebsd.org
These changes should fix the signal "problems" in ppp.
The signal changes should really be put into 2.2 too !
The following patches should do it. There were some other
changes made by Andrey recently that havn't been brought
into 2.2, it may be worth doing them now.
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r-- | usr.sbin/ppp/chat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index bab5a9a..d865801 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -18,7 +18,7 @@ * Columbus, OH 43221 * (614)451-1883 * - * $Id: chat.c,v 1.20 1997/03/09 20:03:34 ache Exp $ + * $Id: chat.c,v 1.21 1997/03/09 20:09:14 ache Exp $ * * TODO: * o Support more UUCP compatible control sequences. @@ -38,6 +38,7 @@ #include <sys/wait.h> #include "timeout.h" #include "vars.h" +#include "sig.h" #define IBSIZE 200 @@ -402,10 +403,12 @@ char *command, *out; pipe(fids); pid = fork(); if (pid == 0) { + TermTimerService(); signal(SIGINT, SIG_DFL); signal(SIGQUIT, SIG_DFL); signal(SIGTERM, SIG_DFL); signal(SIGHUP, SIG_DFL); + signal(SIGALRM, SIG_DFL); close(fids[0]); dup2(fids[1], 1); close(fids[1]); |