diff options
author | Denis Vlasenko | 2008-12-31 03:33:50 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-12-31 03:33:50 +0000 |
commit | 15c0b725849875c718b168a26e13872e163cde4c (patch) | |
tree | 687a5425953ae362ef285c6c671f09a05d3fa3c0 /miscutils/crond.c | |
parent | ccdc13d306c0a8d2735488bf8e46503f7e567767 (diff) | |
download | busybox-1_13_2.zip busybox-1_13_2.tar.gz |
Apply post 1.13.1 patches, bump to 1.13.21_13_2
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index bd7a177..732fbb1 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -779,6 +779,8 @@ ForkJob(const char *user, CronLine *line, int mailFd, xmove_fd(mailFd, mail_filename ? 1 : 0); dup2(1, 2); } + /* crond 3.0pl1-100 puts tasks in separate process groups */ + bb_setpgrp(); execlp(prog, prog, cmd, arg, NULL); crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, prog, cmd, arg); if (mail_filename) { @@ -914,6 +916,8 @@ static void RunJob(const char *user, CronLine *line) if (DebugOpt) { crondlog(LVL5 "child running %s", DEFAULT_SHELL); } + /* crond 3.0pl1-100 puts tasks in separate process groups */ + bb_setpgrp(); 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); |