From 91d56474115fc195bc45d572c7fc223bfed7b558 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Fri, 5 Nov 1999 12:09:54 +0000 Subject: try to fix double-dialing problem --- src/ppp-watch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ppp-watch.c b/src/ppp-watch.c index 44a6edd5..7b45f7b1 100644 --- a/src/ppp-watch.c +++ b/src/ppp-watch.c @@ -215,9 +215,15 @@ fork_exec(int wait, char *path, char *arg1, char *arg2, char *arg3) pid_t child; int status; + sigset_t sigs; + if (!(child = fork())) { /* child */ + /* don't leave signals blocked for pppd */ + sigemptyset(&sigs); + sigprocmask(SIG_SETMASK, &sigs, NULL); + if (!wait) { /* make sure that pppd is in its own process group */ setsid(); -- cgit v1.2.1