summaryrefslogtreecommitdiff
path: root/runit/runsvdir.c
diff options
context:
space:
mode:
authorDenis Vlasenko2009-02-26 12:29:59 +0000
committerDenis Vlasenko2009-02-26 12:29:59 +0000
commitf09f4e015bffe6db5d7e63d47b23f22db4806736 (patch)
tree38393e9a60430aa64541370c68151101e62a64ec /runit/runsvdir.c
parent48637e0924dcd13629ebf3aeffa80cdda1beb5af (diff)
downloadbusybox-f09f4e015bffe6db5d7e63d47b23f22db4806736.zip
busybox-f09f4e015bffe6db5d7e63d47b23f22db4806736.tar.gz
runsv: small optimization
*: more paranoia around passing NULL to execl[e] function old new delta custom 240 221 -19
Diffstat (limited to 'runit/runsvdir.c')
-rw-r--r--runit/runsvdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index 7b054e4..a77bc3f 100644
--- a/runit/runsvdir.c
+++ b/runit/runsvdir.c
@@ -119,7 +119,7 @@ static NOINLINE pid_t runsv(const char *name)
| (1 << SIGTERM)
, SIG_DFL);
#endif
- execlp("runsv", "runsv", name, NULL);
+ execlp("runsv", "runsv", name, (char *) NULL);
fatal2_cannot("start runsv ", name);
}
return pid;