1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

slowread(): Turn off O_NONBLOCK for stdin if it is on (#471)

This change turns off O_NONBLOCK for stdin if a previously ran
program left it on so that interactive programs that expect it
to be off work properly.

src/cmd/ksh93/sh/io.c: slowread():
- Turn off O_NONBLOCK for stdin if it is on.

Fixes: https://github.com/ksh93/ksh/issues/469
This commit is contained in:
atheik 2022-02-23 05:39:15 +02:00 committed by Martijn Dekker
parent e87dbebebd
commit 2e5fd4d4c1
4 changed files with 17 additions and 2 deletions

6
NEWS
View file

@ -3,6 +3,12 @@ For full details, see the git log at: https://github.com/ksh93/ksh/tree/1.0
Any uppercase BUG_* names are modernish shell bug IDs.
2022-08-23:
- When reading input from the keyboard, ksh now turns off nonblocking I/O
mode for standard input if a previously ran program left it on, so that
interactive programs that expect it to be off work properly.
2022-02-18:
- Fixed a regression introduced on 2021-04-11 that caused the += operator in