diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-14 13:34:44 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-14 13:34:44 +0000 |
commit | 06ad5a0db66b3612302fd6b070247ec45ee9d2fa (patch) | |
tree | 644733310b77a51f66188df136bca7ed78bb0132 | |
parent | 3e14aa8de92b39f8a64b6af2ce64aad33b3e21df (diff) | |
download | drakx-06ad5a0db66b3612302fd6b070247ec45ee9d2fa.tar drakx-06ad5a0db66b3612302fd6b070247ec45ee9d2fa.tar.gz drakx-06ad5a0db66b3612302fd6b070247ec45ee9d2fa.tar.bz2 drakx-06ad5a0db66b3612302fd6b070247ec45ee9d2fa.tar.xz drakx-06ad5a0db66b3612302fd6b070247ec45ee9d2fa.zip |
let term signal go to pppd, when connection fails
-rw-r--r-- | mdk-stage1/adsl.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |