diff options
author | Hui Li <herdingcat@yahoo.com> | 2024-01-06 14:28:18 -0500 |
---|---|---|
committer | Hui Li <herdingcat@yahoo.com> | 2024-01-06 14:28:18 -0500 |
commit | 320a12809311b7ef135f3f11a9eaf1f71893496f (patch) | |
tree | 77294d7a1f33c2318c4eb9643712c9aa37f84810 | |
parent | b7b5ca240afe1e6481bbfea509f8d5807c544ea3 (diff) | |
download | mcelog-320a12809311b7ef135f3f11a9eaf1f71893496f.tar.gz |
address comments
-rw-r--r-- | client.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -65,10 +65,8 @@ void ask_server(char *command) fputs(buf, stdout); - /* we want to show the string pong before exiting the loop */ if (n >= 5 && !memcmp(buf + n - 5, "pong\n", 5)) { - fclose(fp); - return; + fflush(stdout); } } fclose(fp); |