summaryrefslogtreecommitdiff
path: root/shell/Config.in
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-18 09:45:36 +0000
committerDenis Vlasenko2007-05-18 09:45:36 +0000
commit6d709972cdad4848908813c673b2f5fdc9e3c4c0 (patch)
tree77c14cf3279dd5e2d2536477ee6eff4884cd3bcc /shell/Config.in
parent4500c58a0766b9cc86dd8ddd25094593a8977197 (diff)
downloadbusybox-6d709972cdad4848908813c673b2f5fdc9e3c4c0.zip
busybox-6d709972cdad4848908813c673b2f5fdc9e3c4c0.tar.gz
cttyhack: new applet.
Diffstat (limited to 'shell/Config.in')
-rw-r--r--shell/Config.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/shell/Config.in b/shell/Config.in
index 0279934..253752b 100644
--- a/shell/Config.in
+++ b/shell/Config.in
@@ -270,4 +270,24 @@ config FEATURE_SH_STANDALONE
# that exact location with that exact name, this option will not work at
# all.
+config CTTYHACK
+ bool "cttyhack"
+ default n
+ help
+ One common problem reported on the mailing list is "can't access tty;
+ job control turned off" error message which typically appears when
+ one tries to use shell with stdin/stdout opened to /dev/console.
+ This device is special - it cannot be a controlling tty.
+
+ Proper solution is to use correct device instead of /dev/console.
+
+ cttyhack provides "quick and dirty" solution to this problem.
+ It analyzes stdin with various ioctls, trying to determine whether
+ it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
+ If it detects one, it closes stdin/out/err and reopens that device.
+ Then it executes given program. Usage example for /etc/inittab
+ (for busybox init):
+
+ ::respawn:/bin/cttyhack /bin/sh
+
endmenu