If you turn off the buffering of stdout as follows, it's ok
stdout
setvbuf(stdout, NULL, _IONBF, 0);
Recommended Posts