hush: use NOFORK applets as appropriate. Net reduction of code size.

This commit is contained in:
Denis Vlasenko
2007-04-14 10:09:57 +00:00
parent 16abcd90ae
commit f5294e1f4c
7 changed files with 125 additions and 114 deletions

View File

@@ -1158,12 +1158,7 @@ static int pseudo_exec(struct child_prog *child)
* /bin/foo is a symlink to busybox.
*/
if (ENABLE_FEATURE_SH_STANDALONE) {
char **argv_l = child->argv;
int argc_l;
for (argc_l = 0; *argv_l; argv_l++, argc_l++)
continue;
run_applet_and_exit(child->argv[0], argc_l, child->argv);
run_applet_and_exit(child->argv[0], child->argv);
}
execvp(child->argv[0], child->argv);