make pidfile writing configurable.
[ui]toa_to_buf: change API. No users yet.
This commit is contained in:
@@ -185,6 +185,7 @@ int crond_main(int ac, char **av)
|
||||
int rescan = 60;
|
||||
short sleep_time = 60;
|
||||
|
||||
write_pidfile("/var/run/crond.pid");
|
||||
for (;;) {
|
||||
sleep((sleep_time + 1) - (short) (time(NULL) % sleep_time));
|
||||
|
||||
|
Reference in New Issue
Block a user