diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-03-18 14:20:10 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-03-18 14:20:10 +0300 |
commit | dbebb99e532822ae70a68dd8f6bc27cce52fc47e (patch) | |
tree | 1a2e8900603de438481d8016fd15cb096a958439 | |
parent | ecee62f204a93c7f512dce46657fbd101d155d78 (diff) | |
download | accel-ppp-dbebb99e532822ae70a68dd8f6bc27cce52fc47e.tar.gz accel-ppp-dbebb99e532822ae70a68dd8f6bc27cce52fc47e.zip |
remove pid file on exit
-rw-r--r-- | accel-pppd/main.c | 3 |
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: |