runsv: small optimization
*: more paranoia around passing NULL to execl[e] function old new delta custom 240 221 -19
This commit is contained in:
@@ -982,7 +982,7 @@ static int doit(char *str)
|
||||
case -1: /* failure */
|
||||
return 0;
|
||||
case 0: /* child */
|
||||
execle(DEFAULT_SHELL, DEFAULT_SHELL, "-c", str, NULL, my_environ);
|
||||
execle(DEFAULT_SHELL, DEFAULT_SHELL, "-c", str, (char *) NULL, my_environ);
|
||||
_exit(127);
|
||||
}
|
||||
safe_waitpid(child, &status, 0);
|
||||
|
Reference in New Issue
Block a user