aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-13 02:25:53 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-13 02:25:53 +0000
commit7465dbcf2a4c0a0983d40e5c0f5c057d2ed04125 (patch)
treefdbbbaab05b45dfb3f67e62e23863e4cc899584b /shell/hush.c
parentf78a656f7c287c0963d985490b3e77751b4a81bc (diff)
downloadbusybox-w32-7465dbcf2a4c0a0983d40e5c0f5c057d2ed04125.tar.gz
busybox-w32-7465dbcf2a4c0a0983d40e5c0f5c057d2ed04125.tar.bz2
busybox-w32-7465dbcf2a4c0a0983d40e5c0f5c057d2ed04125.zip
ash: speed up NOFORK code in ash by eliminating second find_applet().
some code reduction along the way. function old new delta run_list 1971 1981 +10 run_nofork_applet_prime 181 182 +1 unsetcmd 97 96 -1 delete_cmd_entry 54 53 -1 describe_command 399 397 -2 cmdlookup 152 150 -2 evaltreenr 602 599 -3 evaltree 602 599 -3 clearcmdentry 101 98 -3 cdcmd 675 672 -3 hashcmd 305 301 -4 find_command 933 910 -23 evalcommand 1371 1229 -142 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/11 up/down: 11/-187) Total: -176 bytes
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 545367cb6..aa740f1b4 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1861,7 +1861,7 @@ static int run_pipe(struct pipe *pi)
1861 //sp: if (child->sp) 1861 //sp: if (child->sp)
1862 argv_expanded = expand_strvec_to_strvec(argv + i); 1862 argv_expanded = expand_strvec_to_strvec(argv + i);
1863 debug_printf_exec(": run_nofork_applet '%s' '%s'...\n", argv_expanded[0], argv_expanded[1]); 1863 debug_printf_exec(": run_nofork_applet '%s' '%s'...\n", argv_expanded[0], argv_expanded[1]);
1864 rcode = run_nofork_applet_prime(&nofork_save, a, argv_expanded) & 0xff; 1864 rcode = run_nofork_applet_prime(&nofork_save, a, argv_expanded);
1865 free(argv_expanded); 1865 free(argv_expanded);
1866 restore_redirects(squirrel); 1866 restore_redirects(squirrel);
1867 debug_printf_exec("run_pipe return %d\n", rcode); 1867 debug_printf_exec("run_pipe return %d\n", rcode);