diff options
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 2 | ||||
-rwxr-xr-x | shell/hush_test/run-all | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 487ecb0e4..98512bb00 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -143,6 +143,8 @@ int FAST_FUNC run_nofork_applet(int applet_no, char **argv) | |||
143 | applet_name = tmp_argv[0]; | 143 | applet_name = tmp_argv[0]; |
144 | /* Finally we can call NOFORK applet's main() */ | 144 | /* Finally we can call NOFORK applet's main() */ |
145 | rc = applet_main[applet_no](argc, tmp_argv); | 145 | rc = applet_main[applet_no](argc, tmp_argv); |
146 | /* Important for shells: `which CMD` was failing */ | ||
147 | fflush_all(); | ||
146 | } else { | 148 | } else { |
147 | /* xfunc died in NOFORK applet */ | 149 | /* xfunc died in NOFORK applet */ |
148 | } | 150 | } |
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all index 1dd0edc39..3fbc7c531 100755 --- a/shell/hush_test/run-all +++ b/shell/hush_test/run-all | |||
@@ -80,7 +80,7 @@ do_test() | |||
80 | case $? in | 80 | case $? in |
81 | 0) echo " ok";; | 81 | 0) echo " ok";; |
82 | 77) echo " skip (feature disabled)";; | 82 | 77) echo " skip (feature disabled)";; |
83 | *) echo " fail"; tret=1;; | 83 | *) echo " fail ($?)"; tret=1;; |
84 | esac | 84 | esac |
85 | done | 85 | done |
86 | exit ${tret} | 86 | exit ${tret} |