From: Thibault Godouet Date: Sun, 25 Jun 2000 20:02:32 +0000 (+0000) Subject: when fcrontab try to signal fcron daemon, but fcron is dead X-Git-Tag: ver2_9_4~643 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32f95920464d7424700df870a83e718bd5e34de2;p=thirdparty%2Ffcron.git when fcrontab try to signal fcron daemon, but fcron is dead fcrontab removes his pid file --- diff --git a/fcrontab.c b/fcrontab.c index f9f9dbe..0f54cb9 100644 --- a/fcrontab.c +++ b/fcrontab.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcrontab.c,v 1.10 2000-06-22 12:33:09 thib Exp $ */ + /* $Id: fcrontab.c,v 1.11 2000-06-25 20:02:32 thib Exp $ */ /* * The goal of this program is simple : giving a user interface to fcron @@ -42,7 +42,7 @@ #include "fcrontab.h" -char rcs_info[] = "$Id: fcrontab.c,v 1.10 2000-06-22 12:33:09 thib Exp $"; +char rcs_info[] = "$Id: fcrontab.c,v 1.11 2000-06-25 20:02:32 thib Exp $"; void info(void); void usage(void); @@ -204,8 +204,10 @@ sig_daemon(void) /* daemon is not running any longer : we exit */ return ; - if ( kill(daemon_pid, SIGHUP) != 0) + if ( kill(daemon_pid, SIGHUP) != 0) { + remove(PIDFILE); die_e("could not send SIGHUP to daemon (pid %d)", daemon_pid); + } }