diff options
author | Denis Vlasenko | 2008-01-28 22:45:43 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-01-28 22:45:43 +0000 |
commit | 847fa779aff2592e842654b95dc2c321885e1eec (patch) | |
tree | 82a3ba374faa6f07bdcfea80d12a6e9efe2870c4 /runit | |
parent | 0effc2410b219de8c1966752ed217d67943fce69 (diff) | |
download | busybox-847fa779aff2592e842654b95dc2c321885e1eec.zip busybox-847fa779aff2592e842654b95dc2c321885e1eec.tar.gz |
*: tidy up usage of char **environ
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runsv.c | 2 | ||||
-rw-r--r-- | runit/svlogd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 84f5193..e9a0745 100644 --- a/runit/runsv.c +++ b/runit/runsv.c @@ -279,7 +279,7 @@ static unsigned custom(struct svdir *s, char c) warn_cannot("setup stdout for control/?"); prog[0] = a; prog[1] = NULL; - execve(a, prog, environ); + execv(a, prog); fatal_cannot("run control/?"); } while (safe_waitpid(pid, &w, 0) == -1) { diff --git a/runit/svlogd.c b/runit/svlogd.c index 1d679c9..9c169da 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c @@ -252,7 +252,7 @@ static unsigned processorstart(struct logdir *ld) prog[1] = (char*)"-c"; prog[2] = ld->processor; prog[3] = NULL; - execve("/bin/sh", prog, environ); + execv("/bin/sh", prog); bb_perror_msg_and_die(FATAL"cannot %s processor %s", "run", ld->name); } ld->ppid = pid; |