linux-user: Flush errors by using exit() instead of _exit() in error path
Similiar to previous patch - ensure that we always flush I/O by using exit() instead of _exit(). Reported by: Tobias Bergkvist <tobias@bergkv.ist> Reviewed-by: Warner Losh <imp@bsdimp.com> Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/2544 Signed-off-by: Helge Deller <deller@gmx.de>
Helge Deller committed
Apr 26, 2026 at 16:38 UTC
9fb681792d65fa570cb3e1a769945c10bf276d25
1 file changed
+1
-1
linux-user/main.c
+1
-1
@@ -975,7 +975,7 @@ int main(int argc, char **argv, char **envp)
975
info, &bprm);
976
if (ret != 0) {
977
printf("Error while loading %s: %s\n", exec_path, strerror(-ret));
978
- _exit(EXIT_FAILURE);
978
+ exit(EXIT_FAILURE);
979
}
980
981
for (wrk = target_environ; *wrk; wrk++) {