aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c4
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 */