diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-26 15:29:59 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-26 15:29:59 +0300 |
commit | f09f4e015bffe6db5d7e63d47b23f22db4806736 (patch) | |
tree | 38393e9a60430aa64541370c68151101e62a64ec /runit/runsvdir.c | |
parent | 48637e0924dcd13629ebf3aeffa80cdda1beb5af (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 7b054e410..a77bc3fd8 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; |