make pidfile writing configurable.

[ui]toa_to_buf: change API. No users yet.
This commit is contained in:
Denis Vlasenko
2007-03-27 22:01:31 +00:00
parent f4d40c87d3
commit 10457b90db
9 changed files with 51 additions and 50 deletions

View File

@@ -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));