From: Helge Deller <[email protected]> Similiar to previous patch - ensure that we always flush I/O by using exit() instead of _exit().
Reported by: Tobias Bergkvist <[email protected]> Reviewed-by: Warner Losh <[email protected]> Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/2544 Signed-off-by: Helge Deller <[email protected]> (cherry picked from commit 9fb681792d65fa570cb3e1a769945c10bf276d25) Signed-off-by: Michael Tokarev <[email protected]> diff --git a/linux-user/main.c b/linux-user/main.c index 39ac98a74a..57fc568e72 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -987,7 +987,7 @@ int main(int argc, char **argv, char **envp) info, &bprm); if (ret != 0) { printf("Error while loading %s: %s\n", exec_path, strerror(-ret)); - _exit(EXIT_FAILURE); + exit(EXIT_FAILURE); } for (wrk = target_environ; *wrk; wrk++) { -- 2.47.3
