summaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2010-06-10 11:42:30 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-06-12 08:49:15 +0300
commit9156d76331f2d51ce5b17cc945dd97788fc64c5a (patch)
tree4e59a983072d9ad02956ffea0e68646a0e3599fa /os-posix.c
parente06eb601b098d9bcb32eb1ce5e00920d638c6d51 (diff)
downloadqemu-9156d76331f2d51ce5b17cc945dd97788fc64c5a.tar.gz
qemu-9156d76331f2d51ce5b17cc945dd97788fc64c5a.tar.bz2
qemu-9156d76331f2d51ce5b17cc945dd97788fc64c5a.zip
Move line-buffering setup to OS specific files.
Move line-buffering setup to OS specific files. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Richard Henderson <rth@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os-posix.c b/os-posix.c
index 3a96c91ca8..9bae8fe09e 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -298,3 +298,8 @@ void os_pidfile_error(void)
} else
fprintf(stderr, "Could not acquire pid file: %s\n", strerror(errno));
}
+
+void os_set_line_buffering(void)
+{
+ setvbuf(stdout, NULL, _IOLBF, 0);
+}