summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-06-29 13:54:31 +0000
committerbrian <brian@FreeBSD.org>1997-06-29 13:54:31 +0000
commitac73344ac9df56e10a59be45b3ff315b7d4e2595 (patch)
treef26d0080b07d236f9c495645d8e813570e4b825b /usr.sbin
parent716ea5985ea1e23e4f4c1a5b84cfec6fc3c24115 (diff)
downloadFreeBSD-src-ac73344ac9df56e10a59be45b3ff315b7d4e2595.zip
FreeBSD-src-ac73344ac9df56e10a59be45b3ff315b7d4e2595.tar.gz
Fix HUP handling while dialing.
Pointed out by: ache
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index fb31e05..36f6ee9 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -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.66 1997/06/24 21:25:06 brian Exp $
+ * $Id: main.c,v 1.67 1997/06/25 19:30:01 brian Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -79,6 +79,7 @@ static pid_t BGPid = 0;
static char pid_filename[MAXPATHLEN];
static char if_filename[MAXPATHLEN];
int tunno;
+static int dial_up;
static void
TtyInit(int DontWantInt)
@@ -195,8 +196,11 @@ Hangup(signo)
int signo;
{
/* NOTE, these are manual, we've done a setsid() */
- reconnect(RECON_FALSE);
+ LogPrintf(LogPHASE, "Hangup: Caught signal %d, abort connection\n", signo);
+ reconnectState = RECON_FALSE; \
+ reconnectCount = 0; \
DownConnection();
+ dial_up = FALSE;
}
static void
@@ -714,7 +718,6 @@ DoLoop()
int ssize = sizeof(hisaddr);
u_char *cp;
u_char rbuff[MAX_MRU];
- int dial_up;
int tries;
int qlen;
int res;
OpenPOWER on IntegriCloud