Skip to content

Commit

Permalink
Don't set EOF at the current read position when receiving SIGWINCH.
Browse files Browse the repository at this point in the history
That should be done only for SIGINT.
  • Loading branch information
gwsw committed Jun 28, 2023
1 parent 34ff162 commit 9d7be3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public int iread(int fd, unsigned char *buf, unsigned int len)
#endif
#endif
#endif
return (READ_INTR);
return ((sigs & S_INTERRUPT) ? READ_INTR : READ_AGAIN);
}

flush();
Expand Down

0 comments on commit 9d7be3c

Please sign in to comment.