Revision 9156d763
b/os-posix.c | ||
---|---|---|
298 | 298 |
} else |
299 | 299 |
fprintf(stderr, "Could not acquire pid file: %s\n", strerror(errno)); |
300 | 300 |
} |
301 |
|
|
302 |
void os_set_line_buffering(void) |
|
303 |
{ |
|
304 |
setvbuf(stdout, NULL, _IOLBF, 0); |
|
305 |
} |
b/qemu-os-posix.h | ||
---|---|---|
30 | 30 |
{ |
31 | 31 |
} |
32 | 32 |
|
33 |
void os_set_line_buffering(void); |
|
33 | 34 |
void os_setup_signal_handling(void); |
34 | 35 |
void os_daemonize(void); |
35 | 36 |
void os_setup_post(void); |
b/qemu-os-win32.h | ||
---|---|---|
45 | 45 |
static inline void os_setup_signal_handling(void) {} |
46 | 46 |
static inline void os_daemonize(void) {} |
47 | 47 |
static inline void os_setup_post(void) {} |
48 |
/* Win32 doesn't support line-buffering and requires size >= 2 */ |
|
49 |
static inline void os_set_line_buffering(void) {} |
|
48 | 50 |
|
49 | 51 |
#endif |
b/vl.c | ||
---|---|---|
3215 | 3215 |
exit(1); |
3216 | 3216 |
} |
3217 | 3217 |
|
3218 |
#ifndef _WIN32 |
|
3219 |
/* Win32 doesn't support line-buffering and requires size >= 2 */ |
|
3220 |
setvbuf(stdout, NULL, _IOLBF, 0); |
|
3221 |
#endif |
|
3218 |
os_set_line_buffering(); |
|
3222 | 3219 |
|
3223 | 3220 |
if (init_timer_alarm() < 0) { |
3224 | 3221 |
fprintf(stderr, "could not initialize alarm timer\n"); |
Also available in: Unified diff