diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /miscutils/crond.c | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.bz2 busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.zip |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 6db4df422..2bed5a4b1 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -797,7 +797,7 @@ ForkJob(const char *user, CronLine *line, int mailFd, | |||
797 | if (mail_filename) { | 797 | if (mail_filename) { |
798 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); | 798 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); |
799 | } | 799 | } |
800 | _exit(0); | 800 | _exit(EXIT_SUCCESS); |
801 | } | 801 | } |
802 | 802 | ||
803 | line->cl_Pid = pid; | 803 | line->cl_Pid = pid; |
@@ -930,7 +930,7 @@ static void RunJob(const char *user, CronLine *line) | |||
930 | execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL); | 930 | execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL); |
931 | crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, | 931 | crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, |
932 | DEFAULT_SHELL, "-c", line->cl_Shell); | 932 | DEFAULT_SHELL, "-c", line->cl_Shell); |
933 | _exit(0); | 933 | _exit(EXIT_SUCCESS); |
934 | } | 934 | } |
935 | if (pid < 0) { | 935 | if (pid < 0) { |
936 | /* FORK FAILED */ | 936 | /* FORK FAILED */ |