- use EXIT_{SUCCESS,FAILURE}. No object-code changes

This commit is contained in:
Bernhard Reutner-Fischer
2008-05-19 09:29:47 +00:00
parent cb83abd7b6
commit 636a1f85e8
45 changed files with 85 additions and 85 deletions

View File

@@ -797,7 +797,7 @@ ForkJob(const char *user, CronLine *line, int mailFd,
if (mail_filename) {
fdprintf(1, "Exec failed: %s -c %s\n", prog, arg);
}
_exit(0);
_exit(EXIT_SUCCESS);
}
line->cl_Pid = pid;
@@ -930,7 +930,7 @@ static void RunJob(const char *user, CronLine *line)
execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL);
crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user,
DEFAULT_SHELL, "-c", line->cl_Shell);
_exit(0);
_exit(EXIT_SUCCESS);
}
if (pid < 0) {
/* FORK FAILED */