On 1/22/17 2:32 PM, Siteshwar Vashisht wrote:
> If a child process sets stdin to non-blocking and does not set it back to 
> blocking before exiting, other processes may fail to read from stdin.

It's not the shell's business to be resetting this for processes it spawns.
What bash should do is to turn of O_NONBLOCK when it reads input, which it
already does at startup but not every time it calls readline().

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to