projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
daemon.c: Avoid setlinebuf().
[paraslash.git]
/
daemon.c
diff --git
a/daemon.c
b/daemon.c
index b0d8fd744c8f7f0d208afd5f96ca03fe336ece16..8dd4d37e4824c8b8579a96cb338bb1ba980d8d4a 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-223,7
+223,8
@@
void daemon_open_log_or_die(void)
strerror(errno));
exit(EXIT_FAILURE);
}
- setlinebuf(me->logfile);
+ /* equivalent to setlinebuf(), but portable */
+ setvbuf(me->logfile, NULL, _IOLBF, 0);
}
/**