* [Qemu-devel] [6657] Flush stdout after printing usage()
@ 2009-02-28 20:14 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-02-28 20:14 UTC (permalink / raw)
To: qemu-devel
Revision: 6657
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6657
Author: blueswir1
Date: 2009-02-28 20:14:00 +0000 (Sat, 28 Feb 2009)
Log Message:
-----------
Flush stdout after printing usage()
Fixes qemu-arm|grep cpu - with _exit() getting output from qemu --help
is a bit random. Since no atexit() handlers are registered for user mode
emulation, just use exit() instead.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Modified Paths:
--------------
trunk/bsd-user/main.c
trunk/darwin-user/main.c
trunk/linux-user/main.c
Modified: trunk/bsd-user/main.c
===================================================================
--- trunk/bsd-user/main.c 2009-02-28 18:39:42 UTC (rev 6656)
+++ trunk/bsd-user/main.c 2009-02-28 20:14:00 UTC (rev 6657)
@@ -351,7 +351,7 @@
interp_prefix,
x86_stack_size,
DEBUG_LOGFILE);
- _exit(1);
+ exit(1);
}
THREAD CPUState *thread_env;
@@ -448,7 +448,7 @@
#if defined(cpu_list)
cpu_list(stdout, &fprintf);
#endif
- _exit(1);
+ exit(1);
}
} else if (!strcmp(r, "drop-ld-preload")) {
drop_ld_preload = 1;
Modified: trunk/darwin-user/main.c
===================================================================
--- trunk/darwin-user/main.c 2009-02-28 18:39:42 UTC (rev 6656)
+++ trunk/darwin-user/main.c 2009-02-28 20:14:00 UTC (rev 6657)
@@ -756,7 +756,7 @@
interp_prefix,
stack_size,
DEBUG_LOGFILE);
- _exit(1);
+ exit(1);
}
/* XXX: currently only used for async signals (see signal.c) */
@@ -840,7 +840,7 @@
#if defined(cpu_list)
cpu_list(stdout, &fprintf);
#endif
- _exit(1);
+ exit(1);
}
} else
{
Modified: trunk/linux-user/main.c
===================================================================
--- trunk/linux-user/main.c 2009-02-28 18:39:42 UTC (rev 6656)
+++ trunk/linux-user/main.c 2009-02-28 20:14:00 UTC (rev 6657)
@@ -2213,7 +2213,7 @@
interp_prefix,
x86_stack_size,
DEBUG_LOGFILE);
- _exit(1);
+ exit(1);
}
THREAD CPUState *thread_env;
@@ -2335,7 +2335,7 @@
#if defined(cpu_list)
cpu_list(stdout, &fprintf);
#endif
- _exit(1);
+ exit(1);
}
} else if (!strcmp(r, "drop-ld-preload")) {
(void) envlist_unsetenv(envlist, "LD_PRELOAD");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-28 20:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28 20:14 [Qemu-devel] [6657] Flush stdout after printing usage() Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).