aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-04 13:57:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-04 13:57:59 +0000
commit3f70b87c59d2ac801d11d7abd0ef6469d0e49f8a (patch)
tree703e0f58614a21f7295057195e1c433851560383
parent3246c0de12efe901661cceca76c94ac00aae661e (diff)
downloadbusybox-w32-3f70b87c59d2ac801d11d7abd0ef6469d0e49f8a.tar.gz
busybox-w32-3f70b87c59d2ac801d11d7abd0ef6469d0e49f8a.tar.bz2
busybox-w32-3f70b87c59d2ac801d11d7abd0ef6469d0e49f8a.zip
clarify which version of crond is known to put tasks in separate pgrps
-rw-r--r--miscutils/crond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index d2eb115bc..732fbb147 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -779,7 +779,7 @@ ForkJob(const char *user, CronLine *line, int mailFd,
779 xmove_fd(mailFd, mail_filename ? 1 : 0); 779 xmove_fd(mailFd, mail_filename ? 1 : 0);
780 dup2(1, 2); 780 dup2(1, 2);
781 } 781 }
782 /* "standard" cron puts tasks in separate process groups */ 782 /* crond 3.0pl1-100 puts tasks in separate process groups */
783 bb_setpgrp(); 783 bb_setpgrp();
784 execlp(prog, prog, cmd, arg, NULL); 784 execlp(prog, prog, cmd, arg, NULL);
785 crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, prog, cmd, arg); 785 crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, prog, cmd, arg);
@@ -916,7 +916,7 @@ static void RunJob(const char *user, CronLine *line)
916 if (DebugOpt) { 916 if (DebugOpt) {
917 crondlog(LVL5 "child running %s", DEFAULT_SHELL); 917 crondlog(LVL5 "child running %s", DEFAULT_SHELL);
918 } 918 }
919 /* "standard" cron puts tasks in separate process groups */ 919 /* crond 3.0pl1-100 puts tasks in separate process groups */
920 bb_setpgrp(); 920 bb_setpgrp();
921 execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL); 921 execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL);
922 crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, 922 crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user,