From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6657] Flush stdout after printing usage()
Date: Sat, 28 Feb 2009 20:14:01 +0000 [thread overview]
Message-ID: <E1LdVZQ-0002cG-Ue@cvs.savannah.gnu.org> (raw)
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");
reply other threads:[~2009-02-28 20:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LdVZQ-0002cG-Ue@cvs.savannah.gnu.org \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).