diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-27 22:01:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-27 22:01:31 +0000 |
commit | 10457b90db925369739a900445b640364eda5e4c (patch) | |
tree | 6d6f18564291257738360d97712724868175167e /miscutils/crond.c | |
parent | f4d40c87d3a18fccb8c0946fc09f1d8f24a2bcf3 (diff) | |
download | busybox-w32-10457b90db925369739a900445b640364eda5e4c.tar.gz busybox-w32-10457b90db925369739a900445b640364eda5e4c.tar.bz2 busybox-w32-10457b90db925369739a900445b640364eda5e4c.zip |
make pidfile writing configurable.
[ui]toa_to_buf: change API. No users yet.
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 9d511f960..24aa3dcc3 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -185,6 +185,7 @@ int crond_main(int ac, char **av) | |||
185 | int rescan = 60; | 185 | int rescan = 60; |
186 | short sleep_time = 60; | 186 | short sleep_time = 60; |
187 | 187 | ||
188 | write_pidfile("/var/run/crond.pid"); | ||
188 | for (;;) { | 189 | for (;;) { |
189 | sleep((sleep_time + 1) - (short) (time(NULL) % sleep_time)); | 190 | sleep((sleep_time + 1) - (short) (time(NULL) % sleep_time)); |
190 | 191 | ||