aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ppp-watch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ppp-watch.c b/src/ppp-watch.c
index e97c3acb..be241fef 100644
--- a/src/ppp-watch.c
+++ b/src/ppp-watch.c
@@ -228,6 +228,8 @@ restart:
unlink(pidFilePath);
goto restart;
} else {
+ /* reset pidFileName so we don't delete the current one */
+ pidFileName = NULL;
cleanExit(33);
}
}