aboutsummaryrefslogtreecommitdiff
path: root/darwin-user/main.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-28 20:14:00 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-28 20:14:00 +0000
commit2d18e637e5ec628f165bc8866ed1ba73332c9386 (patch)
treeab0db898e88945499857b40f69e0ee1b620a2f90 /darwin-user/main.c
parent2adab7d6b53a246905038fde12c2a0c1d40c6807 (diff)
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 'darwin-user/main.c')
-rw-r--r--darwin-user/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/darwin-user/main.c b/darwin-user/main.c
index 24e738b3a9..9b8a3dccca 100644
--- a/darwin-user/main.c
+++ b/darwin-user/main.c
@@ -756,7 +756,7 @@ void usage(void)
interp_prefix,
stack_size,
DEBUG_LOGFILE);
- _exit(1);
+ exit(1);
}
/* XXX: currently only used for async signals (see signal.c) */
@@ -840,7 +840,7 @@ int main(int argc, char **argv)
#if defined(cpu_list)
cpu_list(stdout, &fprintf);
#endif
- _exit(1);
+ exit(1);
}
} else
{