summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-client/console.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/console-client/console.c b/console-client/console.c
index f995ca2e..a9f8368b 100644
--- a/console-client/console.c
+++ b/console-client/console.c
@@ -275,6 +275,10 @@ void
console_exit (void)
{
driver_fini ();
+#if HAVE_DAEMON
+ if (daemonize)
+ daemon_pid_file_remove ();
+#endif /* HAVE_DAEMON */
exit (0);
}
@@ -626,6 +630,7 @@ static struct argp startup_argp = {options, parse_opt, 0,
{ \
/* Signal parent. */ \
daemon_retval_send (status); \
+ daemon_pid_file_remove (); \
return 0; \
} \
} \