[6657] Flush stdout after printing usage()
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 <[email protected]>
Modified Paths:
--------------
trunk/bsd-user/main.c
trunk/darwin-user/main.c
trunk/linux-user/main.c
Modified: trunk/bsd-user/main.c
===================================================================
bsd-user/main.c +2 -2
@@ -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
===================================================================
darwin-user/main.c +2 -2
@@ -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
===================================================================
linux-user/main.c +2 -2
@@ -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" );