aboutsummaryrefslogtreecommitdiff
path: root/mycan.c
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-05-09 23:21:19 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-05-09 23:21:19 -0700
commit0437840e12f73e691baafdac70b71a7101040cf8 (patch)
tree6a409c588bb738f76a9ee24ecea98b20b8a1f1f5 /mycan.c
parentf566ab01e344058bd74dfab86a1cd1cceeb3a6ce (diff)
better comment
Diffstat (limited to 'mycan.c')
-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