scron

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

commit 2e5f20c86aa22b7e200c15241ce479bec9fb95b7
parent a4cd2a540f2d4ef73d571ca5d42d127f7a542232
Author: sin <sin@2f30.org>
Date:   Thu,  3 Jul 2014 13:57:36 +0100

Print pid not the address of getpid()

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

diff --git a/crond.c b/crond.c @@ -103,7 +103,7 @@ runjob(char *cmd) cmd, ctime(&t)); } else if (pid == 0) { loginfo("run: %s pid: %d at %s", - cmd, getpid, ctime(&t)); + cmd, getpid(), ctime(&t)); execl("/bin/sh", "/bin/sh", "-c", cmd, (char *)NULL); logerr("error: failed to execute job: %s at %s", cmd, ctime(&t));