projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
service: if logging start app with LD_PRELOAD & lib for line buffering
[project/procd.git]
/
service
/
setlbf.c
diff --git a/service/setlbf.c
b/service/setlbf.c
new file mode 100644
(file)
index 0000000..
94c251e
--- /dev/null
+++ b/
service/setlbf.c
@@ -0,0
+1,6
@@
+#include <stdio.h>
+
+static void __attribute__((constructor)) setlbf(void)
+{
+ setbuf(stdout, NULL);
+}