scron

simple cron daemon
git clone git://git.2f30.org/scron
Log | Files | Refs | README | LICENSE

commit f1f4df3f3683b87262cdfdea2a8a82ad544e75b5
parent 6e0d9d6ae6ae270d66321b740c9cb7e058d9aad8
Author: sin <sin@2f30.org>
Date:   Mon,  7 Jul 2014 13:25:31 +0100

Don't add the job to the list if fork failed

Diffstat:
Mcrond.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/crond.c b/crond.c @@ -133,6 +133,7 @@ runjob(char *cmd) if (pid < 0) { logerr("error: failed to fork job: %s time: %s", cmd, ctime(&t)); + return; } else if (pid == 0) { setsid(); loginfo("run: %s pid: %d at %s",