aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.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/ash.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/ash.c')
-rw-r--r--shell/ash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 63f039df4..90936fcc0 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6539,10 +6539,8 @@ tryexec(char *cmd, char **argv, char **envp)
6539 a = find_applet_by_name(cmd); 6539 a = find_applet_by_name(cmd);
6540 if (a) { 6540 if (a) {
6541 if (a->noexec) { 6541 if (a->noexec) {
6542 char **c = argv;
6543 while (*c) c++;
6544 current_applet = a; 6542 current_applet = a;
6545 run_current_applet_and_exit(c - argv, argv); 6543 run_current_applet_and_exit(argv);
6546 } 6544 }
6547 /* re-exec ourselves with the new arguments */ 6545 /* re-exec ourselves with the new arguments */
6548 execve(CONFIG_BUSYBOX_EXEC_PATH, argv, envp); 6546 execve(CONFIG_BUSYBOX_EXEC_PATH, argv, envp);