aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-03-17 13:20:38 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-03-17 13:20:38 +0200
commita31c3374d2c32de00feb7b9d029e6846abd0a76d (patch)
treec0883ac56237942adad3a21e50e427151b5acfa8
parent8ef306aec6f865d3550c13800c7da6f6145aaffb (diff)
downloadpies-a31c3374d2c32de00feb7b9d029e6846abd0a76d.tar.gz
pies-a31c3374d2c32de00feb7b9d029e6846abd0a76d.tar.bz2
Remove pidfile when exiting or restarting.
* src/pies.c (main): Remove pidfile after exiting the event loop.
-rw-r--r--src/pies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pies.c b/src/pies.c
index b54ca47..9060579 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -2436,6 +2436,7 @@ main (int argc, char **argv)
while (action == ACTION_CONT);
progman_stop ();
+ remove_pidfile (pidfile);
if (action == ACTION_RESTART && argv[0][0] == '/')
{
@@ -2445,7 +2446,6 @@ main (int argc, char **argv)
for (i = getmaxfd (); i > minfd; i--)
close (i);
- remove_pidfile (pidfile);
signal_setup (SIG_DFL);
execv (argv[0], argv);

Return to:

Send suggestions and report system problems to the System administrator.