Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mode_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,10 @@ void displayModesMessage(struct modesMessage *mm) {
printf(";\n");

if (Modes.raw) {
fflush(stdout); // Provide data to the reader ASAP
return; // Enough for --raw mode
if(fflush(stdout) == 0) // Provide data to the reader ASAP
return; // Enough for --raw mode
else
exit(1); // fflush error should exit
}

if (mm->msgtype < 32)
Expand Down