aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-01-28 22:45:43 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-01-28 22:45:43 +0000
commit847fa779aff2592e842654b95dc2c321885e1eec (patch)
tree82a3ba374faa6f07bdcfea80d12a6e9efe2870c4 /runit
parent0effc2410b219de8c1966752ed217d67943fce69 (diff)
downloadbusybox-w32-847fa779aff2592e842654b95dc2c321885e1eec.tar.gz
busybox-w32-847fa779aff2592e842654b95dc2c321885e1eec.tar.bz2
busybox-w32-847fa779aff2592e842654b95dc2c321885e1eec.zip
*: tidy up usage of char **environ
Diffstat (limited to 'runit')
-rw-r--r--runit/runsv.c2
-rw-r--r--runit/svlogd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index 84f5193f5..e9a074580 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -279,7 +279,7 @@ static unsigned custom(struct svdir *s, char c)
279 warn_cannot("setup stdout for control/?"); 279 warn_cannot("setup stdout for control/?");
280 prog[0] = a; 280 prog[0] = a;
281 prog[1] = NULL; 281 prog[1] = NULL;
282 execve(a, prog, environ); 282 execv(a, prog);
283 fatal_cannot("run control/?"); 283 fatal_cannot("run control/?");
284 } 284 }
285 while (safe_waitpid(pid, &w, 0) == -1) { 285 while (safe_waitpid(pid, &w, 0) == -1) {
diff --git a/runit/svlogd.c b/runit/svlogd.c
index 1d679c972..9c169da1f 100644
--- a/runit/svlogd.c
+++ b/runit/svlogd.c
@@ -252,7 +252,7 @@ static unsigned processorstart(struct logdir *ld)
252 prog[1] = (char*)"-c"; 252 prog[1] = (char*)"-c";
253 prog[2] = ld->processor; 253 prog[2] = ld->processor;
254 prog[3] = NULL; 254 prog[3] = NULL;
255 execve("/bin/sh", prog, environ); 255 execv("/bin/sh", prog);
256 bb_perror_msg_and_die(FATAL"cannot %s processor %s", "run", ld->name); 256 bb_perror_msg_and_die(FATAL"cannot %s processor %s", "run", ld->name);
257 } 257 }
258 ld->ppid = pid; 258 ld->ppid = pid;