aboutsummaryrefslogtreecommitdiff
path: root/mycan.c
diff options
context:
space:
mode:
Diffstat (limited to 'mycan.c')
-rw-r--r--mycan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mycan.c b/mycan.c
index e7202d5..e8f4157 100644
--- a/mycan.c
+++ b/mycan.c
@@ -113,6 +113,8 @@ int main(int argc, char **argv)
break;
}
// need fflush for systemd to log my stdout
+ // without fflush, fprintf stderr works, printf not work, fprintf stdout not work
+ // maybe other ways to disable buffering also works
// https://unix.stackexchange.com/questions/725331
// https://unix.stackexchange.com/questions/785686
fflush(stdout);