Monday, December 12, 2022

Re: ex/vi 100% CPU when STDIN_FILENO set to O_NONBLOCK

Claudio Jeker <cjeker@diehard.n-r-g.com> wrote:

> I think this is the wrong way around. The callers need to be fixed to pass
> a blocking stdin to programs since that is what every unix utility
> expects. What you propose it to fix every unix utility to have such a check
> at the start of main. Sorry but no.

That's right. non-blocking or non-canonical input methods are for use inside
a program, and must not be actively passed to programs which (cannot) expect
the situation.

No comments:

Post a Comment