diff options
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 3f60468de..3e12fedc8 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -13,22 +13,7 @@ | |||
13 | #define VERSION "2.3.2" | 13 | #define VERSION "2.3.2" |
14 | 14 | ||
15 | #include "busybox.h" | 15 | #include "busybox.h" |
16 | #include <stdio.h> | 16 | #include <sys/syslog.h> |
17 | #include <stdlib.h> | ||
18 | #include <stdarg.h> | ||
19 | #include <string.h> | ||
20 | #include <errno.h> | ||
21 | #include <time.h> | ||
22 | #include <dirent.h> | ||
23 | #include <fcntl.h> | ||
24 | #include <unistd.h> | ||
25 | #include <syslog.h> | ||
26 | #include <signal.h> | ||
27 | #include <getopt.h> | ||
28 | #include <sys/ioctl.h> | ||
29 | #include <sys/wait.h> | ||
30 | #include <sys/stat.h> | ||
31 | #include <sys/resource.h> | ||
32 | 17 | ||
33 | #define arysize(ary) (sizeof(ary)/sizeof((ary)[0])) | 18 | #define arysize(ary) (sizeof(ary)/sizeof((ary)[0])) |
34 | 19 | ||
@@ -193,7 +178,7 @@ int crond_main(int ac, char **av) | |||
193 | * change directory | 178 | * change directory |
194 | */ | 179 | */ |
195 | 180 | ||
196 | bb_xchdir(CDir); | 181 | xchdir(CDir); |
197 | signal(SIGHUP, SIG_IGN); /* hmm.. but, if kill -HUP original | 182 | signal(SIGHUP, SIG_IGN); /* hmm.. but, if kill -HUP original |
198 | * version - his died. ;( | 183 | * version - his died. ;( |
199 | */ | 184 | */ |
@@ -208,7 +193,7 @@ int crond_main(int ac, char **av) | |||
208 | /* reexec for vfork() do continue parent */ | 193 | /* reexec for vfork() do continue parent */ |
209 | vfork_daemon_rexec(1, 0, ac, av, "-f"); | 194 | vfork_daemon_rexec(1, 0, ac, av, "-f"); |
210 | #else | 195 | #else |
211 | bb_xdaemon(1, 0); | 196 | xdaemon(1, 0); |
212 | #endif | 197 | #endif |
213 | } | 198 | } |
214 | 199 | ||