Disable stdout/stderr buffering

This commit is contained in:
Vitaliy Filippov
2020-09-11 16:52:51 +03:00
parent 53832d184a
commit 6e72cf2732
2 changed files with 25 additions and 0 deletions
+2
View File
@@ -18,6 +18,8 @@ static void handle_sigint(int sig)
int main(int narg, char *args[])
{
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
if (sizeof(osd_any_op_t) > OSD_PACKET_SIZE ||
sizeof(osd_any_reply_t) > OSD_PACKET_SIZE)
{