From 0d29bf086327278d8461a2b0c795804c8c827dc2 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 9 May 2025 23:18:38 -0700 Subject: more comment --- mycan.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3-70-g09d2