diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-28 20:14:00 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-28 20:14:00 +0000 |
commit | d49287413bf9f88baa6b2f222b1d0591e8bd61c0 (patch) | |
tree | ab0db898e88945499857b40f69e0ee1b620a2f90 /bsd-user/main.c | |
parent | be9419695f7882fdb55e9d91898b5955bd38f4ea (diff) | |
download | qemu-d49287413bf9f88baa6b2f222b1d0591e8bd61c0.tar.gz qemu-d49287413bf9f88baa6b2f222b1d0591e8bd61c0.tar.bz2 qemu-d49287413bf9f88baa6b2f222b1d0591e8bd61c0.zip |
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>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6657 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'bsd-user/main.c')
-rw-r--r-- | bsd-user/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c index 7d0d4b397a..74a1ba61fb 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -351,7 +351,7 @@ static void usage(void) interp_prefix, x86_stack_size, DEBUG_LOGFILE); - _exit(1); + exit(1); } THREAD CPUState *thread_env; @@ -448,7 +448,7 @@ int main(int argc, char **argv) #if defined(cpu_list) cpu_list(stdout, &fprintf); #endif - _exit(1); + exit(1); } } else if (!strcmp(r, "drop-ld-preload")) { drop_ld_preload = 1; |