summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-03-18 14:20:10 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-03-18 14:20:10 +0300
commitdbebb99e532822ae70a68dd8f6bc27cce52fc47e (patch)
tree1a2e8900603de438481d8016fd15cb096a958439
parentecee62f204a93c7f512dce46657fbd101d155d78 (diff)
downloadaccel-ppp-dbebb99e532822ae70a68dd8f6bc27cce52fc47e.tar.gz
accel-ppp-dbebb99e532822ae70a68dd8f6bc27cce52fc47e.zip
remove pid file on exit
-rw-r--r--accel-pppd/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/main.c b/accel-pppd/main.c
index b908fbc..6673724 100644
--- a/accel-pppd/main.c
+++ b/accel-pppd/main.c
@@ -341,6 +341,9 @@ int main(int _argc, char **_argv)
triton_terminate();
+ if (pid_file)
+ unlink(pid_file);
+
return EXIT_SUCCESS;
usage: