[BusyBox] [PATCH] Ash should leave tty the way it found it

Paul Whittaker paw at si1.dod.gov.au
Sat Jul 24 01:30:56 UTC 2004


Package: busybox
Version: 1.00rc1

With job control enabled, ash fails to tcsetpgrp back to initialpgrp 
upon exit.  exitshell() should call setjobctl(0) to do this.

Context: I am using a lightweight menu system (replimenu[.sf.net]) on my 
console, which invokes "/bin/sh -i -c /bin/login", where /bin/sh and 
/bin/login are busybox applets.   /bin/sh is ash, with 
CONFIG_ASH_JOB_CONTROL=y as the sole suboption.  The shell of the user 
concerned (nobody) is also /bin/sh (ash).  When the user /bin/sh exits 
(and thereby login and its parent sh), replimenu receives EIO when it 
tries to read from the terminal.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: busybox-1.00rc1-ash.patch
Url: http://lists.busybox.net/pipermail/busybox/attachments/20040724/93ac7f78/attachment.diff 


More information about the busybox mailing list