aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-14 10:09:57 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-14 10:09:57 +0000
commit1f7c156d56726cdeeadc5983149304f2e3be36ad (patch)
tree95a0c3632c8c2b20fa6b60f1e1a33e4fc4b24d4f /shell/lash.c
parent86b5b2210f0ea0158af81b9da1f6849ea7dcea5d (diff)
downloadbusybox-w32-1f7c156d56726cdeeadc5983149304f2e3be36ad.tar.gz
busybox-w32-1f7c156d56726cdeeadc5983149304f2e3be36ad.tar.bz2
busybox-w32-1f7c156d56726cdeeadc5983149304f2e3be36ad.zip
hush: use NOFORK applets as appropriate. Net reduction of code size.
git-svn-id: svn://busybox.net/trunk/busybox@18436 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/shell/lash.c b/shell/lash.c
index c74684bf7..6fe2ddc76 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1158,12 +1158,7 @@ static int pseudo_exec(struct child_prog *child)
1158 * /bin/foo is a symlink to busybox. 1158 * /bin/foo is a symlink to busybox.
1159 */ 1159 */
1160 if (ENABLE_FEATURE_SH_STANDALONE) { 1160 if (ENABLE_FEATURE_SH_STANDALONE) {
1161 char **argv_l = child->argv; 1161 run_applet_and_exit(child->argv[0], child->argv);
1162 int argc_l;
1163
1164 for (argc_l = 0; *argv_l; argv_l++, argc_l++)
1165 continue;
1166 run_applet_and_exit(child->argv[0], argc_l, child->argv);
1167 } 1162 }
1168 1163
1169 execvp(child->argv[0], child->argv); 1164 execvp(child->argv[0], child->argv);