This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Don't pass shell loops' stdin to programs run on glibc's host
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Sat, 20 Oct 2012 13:44:28 -0700 (PDT)
- Subject: Re: Don't pass shell loops' stdin to programs run on glibc's host
- References: <Pine.LNX.4.64.1210200012540.11460@digraph.polyomino.org.uk>
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.