← Commit list

19c9f31af

Denys Vlasenko
Denys Vlasenko
2017-08-03
SUCCESS Duration: 141s

Subject

nofork: fix a bug uncovered by hush testsuite (forgotten fflush)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/vfork_daemon_rexec.c+2 -0
@@ -143,6 +143,8 @@ int FAST_FUNC run_nofork_applet(int applet_no, char **argv)
applet_name = tmp_argv[0];
/* Finally we can call NOFORK applet's main() */
rc = applet_main[applet_no](argc, tmp_argv);
+ /* Important for shells: `which CMD` was failing */
+ fflush_all();
} else {
/* xfunc died in NOFORK applet */
}
shell/hush_test/run-all+1 -1
@@ -80,7 +80,7 @@ do_test()
case $? in
0) echo " ok";;
77) echo " skip (feature disabled)";;
- *) echo " fail"; tret=1;;
+ *) echo " fail ($?)"; tret=1;;
esac
done
exit ${tret}