scron

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

commit 371b321ad7a0f9fcc4f9eff2d57a744052bf1647
parent 34102fff92abcecd85a63d51328887ddfd99038c
Author: sin <sin@2f30.org>
Date:   Wed,  2 Jul 2014 14:03:08 +0100

Use _exit() if exec*() fails

Diffstat:
Mcrond.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crond.c b/crond.c @@ -117,7 +117,7 @@ runjob(char *cmd) execl("/bin/sh", "/bin/sh", "-c", cmd, (char *) NULL); fprintf(stderr, "error: job failed: %s time: %s\n", cmd, ctime(&t)); syslog(LOG_WARNING, "error: job failed: %s", cmd); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } }