summaryrefslogtreecommitdiff
path: root/accel-pppd/main.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-06-11 16:09:42 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-06-11 16:09:42 +0400
commit23ef56423c127464216d534fe12a206c807a53d1 (patch)
tree549791f2dd706a740822ce85b1f2d9854a04950c /accel-pppd/main.c
parentca0729a15bd271d9cb85c5e493e98d3b5b6f7fea (diff)
downloadaccel-ppp-23ef56423c127464216d534fe12a206c807a53d1.tar.gz
accel-ppp-23ef56423c127464216d534fe12a206c807a53d1.zip
fixed 'restart' commnd (stops all sessions, then do restart)
Diffstat (limited to 'accel-pppd/main.c')
-rw-r--r--accel-pppd/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/main.c b/accel-pppd/main.c
index 8a75d5d2..365aee00 100644
--- a/accel-pppd/main.c
+++ b/accel-pppd/main.c
@@ -148,7 +148,7 @@ void core_restart(int soft)
if (fork()) {
//close_all_fd();
- return;
+ _exit(0);
}
pthread_sigmask(SIG_SETMASK, &orig_set, NULL);
@@ -180,7 +180,7 @@ void core_restart(int soft)
sprintf(exe, "/proc/%u/exe", getpid());
readlink(exe, exe, PATH_MAX);
- if (!f)
+ if (!f && soft)
argv[n++] = "--internal";
argv[n++] = NULL;