diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-03 10:46:12 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-03 10:46:12 +0000 |
commit | 6ebb2f56d57ee2e900954d2264b605353cf44ca2 (patch) | |
tree | 5276c764e098351cbb2bebe9862dbc8ed6955a5b /miscutils/crond.c | |
parent | f8535ccd65d21db9762be8715a6107889a50977f (diff) | |
download | busybox-w32-6ebb2f56d57ee2e900954d2264b605353cf44ca2.tar.gz busybox-w32-6ebb2f56d57ee2e900954d2264b605353cf44ca2.tar.bz2 busybox-w32-6ebb2f56d57ee2e900954d2264b605353cf44ca2.zip |
crond: use bb_setpgrp, not setpgrp
platform.h: make a bit more readable
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 1960a2c35..d2eb115bc 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -780,7 +780,7 @@ ForkJob(const char *user, CronLine *line, int mailFd, | |||
780 | dup2(1, 2); | 780 | dup2(1, 2); |
781 | } | 781 | } |
782 | /* "standard" cron puts tasks in separate process groups */ | 782 | /* "standard" cron puts tasks in separate process groups */ |
783 | 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); |
786 | if (mail_filename) { | 786 | if (mail_filename) { |
@@ -917,7 +917,7 @@ static void RunJob(const char *user, CronLine *line) | |||
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 | /* "standard" cron puts tasks in separate process groups */ |
920 | 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, |
923 | DEFAULT_SHELL, "-c", line->cl_Shell); | 923 | DEFAULT_SHELL, "-c", line->cl_Shell); |