scron

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

commit 1b6aa25ff07e3bca31da4b0ede7920ab9e4a8ed3
parent cdfe2821c56fe953ca8aa081ffb6c4a4805b1d3f
Author: sin <sin@2f30.org>
Date:   Tue, 15 Jul 2014 17:43:12 +0100

Style fix

Diffstat:
Mcrond.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/crond.c b/crond.c @@ -151,12 +151,12 @@ runjob(char *cmd) logerr("error: failed to execute job: %s time: %s", cmd, ctime(&t)); _exit(EXIT_FAILURE); + } else { + je = emalloc(sizeof(*je)); + je->cmd = estrdup(cmd); + je->pid = pid; + TAILQ_INSERT_TAIL(&jobhead, je, entry); } - - je = emalloc(sizeof(*je)); - je->cmd = estrdup(cmd); - je->pid = pid; - TAILQ_INSERT_TAIL(&jobhead, je, entry); } static void