[BusyBox 0001342]: busybox 1.5.0 /bin/sh: can't access tty; job control turned off

bugs at busybox.net bugs at busybox.net
Wed May 9 20:12:23 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1342 
====================================================================== 
Reported By:                zhuangyy
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1342
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             05-09-2007 01:20 PDT
Last Modified:              05-09-2007 13:12 PDT
====================================================================== 
Summary:                    busybox 1.5.0 /bin/sh: can't access tty; job control
turned off
Description: 
after upgrading busybox from 1.4.2 to 1.5.0, I got a "/bin/sh: can't access
tty; job control turned off" error message.

1.4.2 just works fine.

my inittab:
::sysinit:/etc/rc.sysinit
::respawn:-/bin/sh
::restart:/sbin/init
::shutdown:/bin/sync
====================================================================== 

---------------------------------------------------------------------- 
 zhuangyy - 05-09-07 01:21  
---------------------------------------------------------------------- 
the shell i am using is ash. 

---------------------------------------------------------------------- 
 vda - 05-09-07 13:12  
---------------------------------------------------------------------- 
init has stdin/out/err opened to /dev/console for it by kernel. This device
is special - it cannot be a controlling tty.

There was special ad-hoc code in init which analyzed init's stdin with
various ioctls, trying to determine whether it is a /dev/ttyN or
/dev/ttySN (virtual terminal or serial line). If it detected one, it
closed stdin/out/err and reopened that device.

It was done in order to have controlling tty. Note that if console in NOT
vc or serial, init was not able to do the trick. Thus different console
devices were handled in different way.

This code ws removed. init just hands already opened /dev/console file
descriptors to its children. If you wish to still do this hack, use
attached program:

::respawn:/bin/cttyhack -/bin/sh 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-09-07 01:20  zhuangyy       New Issue                                    
05-09-07 01:20  zhuangyy       Status                   new => assigned     
05-09-07 01:20  zhuangyy       Assigned To               => BusyBox         
05-09-07 01:21  zhuangyy       Note Added: 0002348                          
05-09-07 13:12  vda            Note Added: 0002349                          
======================================================================




More information about the busybox-cvs mailing list