]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
when fcrontab try to signal fcron daemon, but fcron is dead
authorThibault Godouet <yo8192@users.noreply.github.com>
Sun, 25 Jun 2000 20:02:32 +0000 (20:02 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Sun, 25 Jun 2000 20:02:32 +0000 (20:02 +0000)
fcrontab removes his pid file

fcrontab.c

index f9f9dbe21a569807976bcaa3240391f712774cb4..0f54cb9d4f155cf9c80846fb3a4ffa1ff7f88494 100644 (file)
@@ -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);
+    }
 
 }