Simple command line programs like cat or vi cat just stop working with
an error: "Resource temprorarily unavailable". Busybox does not clear the 
NONBLOCK flag from stdin when it is in the foreground.

fcntl(2) says:
   File status flags
       Each open file description has certain associated status flags,
       initialized by open(2) and possibly modified by fcntl().  Duplicated
       file  descriptors (made  with  dup(2),  fcntl(F_DUPFD), fork(2), etc.)
       refer to the same open file description, and thus share the same file
       status flags.

This means that the programs you start from the command line, inheriting the
shell's stdin/out/err can influence them, and by extension, influence all
further programs to be launched. 

Adam Endrodi(1):
  ash: clear the NONBLOCK flag from stdin when in foreground

 shell/ash.c |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

-- 
1.7.2.5

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to