Skip to content

Commit

Permalink
Fix previous fix. Don't return READ_AGAIN when reading tty.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Jun 29, 2023
1 parent 867175a commit 945acfc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion os.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,12 @@ public int iread(int fd, unsigned char *buf, unsigned int len)
#endif
#endif
#endif
return ((sigs & S_INTERRUPT) ? READ_INTR : READ_AGAIN);
#if !MSDOS_COMPILER
if (fd != tty && !(sigs & S_INTERRUPT))
/* Non-interrupt signal like SIGWINCH. */
return (READ_AGAIN);
#endif
return (READ_INTR);
}

flush();
Expand Down

0 comments on commit 945acfc

Please sign in to comment.