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

View file

@ -18,6 +18,7 @@ ksh 93u+m general copyright notice
# Johnothan King <johnothanking@protonmail.com> #
# hyenias <58673227+hyenias@users.noreply.github.com> #
# Anuradha Weeraman <anuradha@weeraman.com> #
# atheik <atteh.mailbox@gmail.com> #
# Chase <nicetrynsa@protonmail.ch> #
# Finnbarr P. Murphy <fpm@hotmail.com> #
# Govind Kamat <govind_kamat@yahoo.com> #