diff options
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 2 | ||||
-rw-r--r-- | sysdep/unix/log.c | 2 | ||||
-rw-r--r-- | sysdep/unix/main.c | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 267e589..824c7e2 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -897,8 +897,6 @@ io_loop(void) sock *s; node *n, *p; - /* FIXME: Use poll() if available */ - FD_ZERO(&rd); FD_ZERO(&wr); for(;;) diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index b4a028d..fa2902e 100644 --- a/sysdep/unix/log.c +++ b/sysdep/unix/log.c @@ -184,4 +184,6 @@ log_init_debug(char *f) dbgf = stderr; else if (!(dbgf = fopen(f, "a"))) log(L_ERR "Error opening debug file `%s': %m", f); + if (dbgf) + setvbuf(dbgf, NULL, _IONBF, 0); } diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 58fffda..c6f4893 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -385,8 +385,6 @@ main(int argc, char **argv) dmalloc_debug(0x2f03d00); #endif - setvbuf(stdout, NULL, _IONBF, 0); /* FIXME: Kill some day. */ - setvbuf(stderr, NULL, _IONBF, 0); parse_args(argc, argv); if (debug_flag == 1) log_init_debug(""); |