From 06ad5a0db66b3612302fd6b070247ec45ee9d2fa Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 14 Jun 2001 13:34:44 +0000 Subject: let term signal go to pppd, when connection fails --- mdk-stage1/adsl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/adsl.c') diff --git a/mdk-stage1/adsl.c b/mdk-stage1/adsl.c index ffcb654f2..74838aa92 100644 --- a/mdk-stage1/adsl.c +++ b/mdk-stage1/adsl.c @@ -102,8 +102,11 @@ static enum return_type adsl_connect(char * net_device, char * username, char * } if (status != RETURN_OK) { - kill(ppp_pid, SIGTERM); log_message("PPP: could not connect"); + kill(ppp_pid, SIGTERM); + sleep(1); + kill(ppp_pid, SIGKILL); + sleep(1); } return status; } -- cgit v1.2.1