diff options
-rw-r--r-- | mycan.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |