[PATCH] ucspi-unix 0.36 line buffering

Dale Woolridge <[email protected]> Mon, 26 Sep 2005 08:56:36 -0400
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
Hi.  The following patch fixes a bug in unixserver where stdout is
block buffered by default (when it's not attached to a tty or other
terminal device).  This patch forces stdout to be line buffered
which I've found particularly useful when using unixserver with
supervise and multilog.
--
-dale


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
patch-ucspi-unix-0.36-dw-linebuf-freebsd.1 (text/plain, 274 B)
--- unixserver.c	Mon Jun 10 17:12:06 2002
+++ unixserver.c	Sun Sep 25 20:07:14 2005
@@ -285,6 +285,7 @@
 int main(int argc, char* argv[])
 {
   int s;
+  setlinebuf(stdout);
   parse_options(argc, argv);
   signal(SIGCHLD, handle_children);
   signal(SIGINT, handle_intr);