aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-05-09 23:18:38 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-05-09 23:18:38 -0700
commit0d29bf086327278d8461a2b0c795804c8c827dc2 (patch)
tree138b50e4a866a56abf5ac57a0e0ad804974cc921
parent8b9c5d8f1ca155c0ae1d98f2f3763560fe1c2fb3 (diff)
more comment
-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);