aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mycan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mycan.c b/mycan.c
index 8d0237f..71e4e92 100644
--- a/mycan.c
+++ b/mycan.c
@@ -114,9 +114,10 @@ int main(int argc, char **argv)
}
// 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 or flush buffers also works
- // https://unix.stackexchange.com/questions/725331
- // https://unix.stackexchange.com/questions/785686
+ // maybe other ways to flush buffers or disable buffering also works
+ // https://unix.stackexchange.com/questions/725331#comment1376185_725331
+ // https://stackoverflow.com/a/7876743
+ // https://unix.stackexchange.com/questions/785686#comment1505589_785686
fflush(stdout);
//1.Create socket