LWN.net Logo

change the default?

change the default?

Posted Aug 4, 2008 19:15 UTC (Mon) by jreiser (subscriber, #11027)
In reply to: change the default? by pflugstad
Parent article: File descriptor handling changes in 2.6.27

All shells and all pipelines would break.  Having a file descriptor persist across execve is
the usual way to "inherit" [share] stdin, stdout, stderr for a new application main program.

Many shell scripts themselves would break, because they rely on subprocesses reading only a
portion of the data (such as one line, one command, one expression) that they could read from
stdin, then leaving the fd open at the correct position for the parent process (and its
children) to read the next portion.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds