summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-12-07 21:22:48 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-12-07 21:22:48 +0000
commitfb4e7fa4f69ac06fa4f77b0de11e69b2912a69bf (patch)
tree1f775a4f3ffe4170a8e571eb648f557aadd6d311
parent78c32db23bfc6916dfd6d93acd545d07fda3527a (diff)
downloadbuildroot-novena-fb4e7fa4f69ac06fa4f77b0de11e69b2912a69bf.tar.gz
buildroot-novena-fb4e7fa4f69ac06fa4f77b0de11e69b2912a69bf.zip
busybox: 1.13.1 crond fix
-rw-r--r--package/busybox/busybox-1.13.1-crond.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.13.1-crond.patch b/package/busybox/busybox-1.13.1-crond.patch
new file mode 100644
index 000000000..ca7e79c44
--- /dev/null
+++ b/package/busybox/busybox-1.13.1-crond.patch
@@ -0,0 +1,20 @@
+--- busybox-1.13.1/miscutils/crond.c Sun Nov 9 18:28:17 2008
++++ busybox-1.13.1-crond/miscutils/crond.c Thu Dec 4 14:56:10 2008
+@@ -779,6 +779,8 @@
+ 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 @@
+ 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);