Don't pass shell loops' stdin to programs run on glibc's host

Roland McGrath roland@hack.frob.com
Sat Oct 20 20:44:00 GMT 2012


No test should ever read from the inherited stdin.  For scripts, the robust
thing to do is put "exec < /dev/null" somewhere near the top.  For test
programs run by the generic $< > $@ rule, we should just add < /dev/null
to that command.



More information about the Libc-alpha mailing list