aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-14 10:09:57 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-14 10:09:57 +0000
commitf5294e1f4c56afb377ada95a7757b28ad3c89086 (patch)
tree95a0c3632c8c2b20fa6b60f1e1a33e4fc4b24d4f /shell/ash.c
parent16abcd90aefae8bdb9f7d80a555982dba6ca59b5 (diff)
downloadbusybox-w32-f5294e1f4c56afb377ada95a7757b28ad3c89086.tar.gz
busybox-w32-f5294e1f4c56afb377ada95a7757b28ad3c89086.tar.bz2
busybox-w32-f5294e1f4c56afb377ada95a7757b28ad3c89086.zip
hush: use NOFORK applets as appropriate. Net reduction of code size.
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);