diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2010-06-10 11:42:30 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-06-12 08:49:15 +0300 |
commit | 9156d76331f2d51ce5b17cc945dd97788fc64c5a (patch) | |
tree | 4e59a983072d9ad02956ffea0e68646a0e3599fa /os-posix.c | |
parent | e06eb601b098d9bcb32eb1ce5e00920d638c6d51 (diff) | |
download | qemu-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.c | 5 |
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); +} |