diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-18 09:45:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-18 09:45:36 +0000 |
commit | 6d709972cdad4848908813c673b2f5fdc9e3c4c0 (patch) | |
tree | 77c14cf3279dd5e2d2536477ee6eff4884cd3bcc /shell/Config.in | |
parent | 4500c58a0766b9cc86dd8ddd25094593a8977197 (diff) | |
download | busybox-w32-6d709972cdad4848908813c673b2f5fdc9e3c4c0.tar.gz busybox-w32-6d709972cdad4848908813c673b2f5fdc9e3c4c0.tar.bz2 busybox-w32-6d709972cdad4848908813c673b2f5fdc9e3c4c0.zip |
cttyhack: new applet.
Diffstat (limited to 'shell/Config.in')
-rw-r--r-- | shell/Config.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/shell/Config.in b/shell/Config.in index 027993483..253752bc3 100644 --- a/shell/Config.in +++ b/shell/Config.in | |||
@@ -270,4 +270,24 @@ config FEATURE_SH_STANDALONE | |||
270 | # that exact location with that exact name, this option will not work at | 270 | # that exact location with that exact name, this option will not work at |
271 | # all. | 271 | # all. |
272 | 272 | ||
273 | config CTTYHACK | ||
274 | bool "cttyhack" | ||
275 | default n | ||
276 | help | ||
277 | One common problem reported on the mailing list is "can't access tty; | ||
278 | job control turned off" error message which typically appears when | ||
279 | one tries to use shell with stdin/stdout opened to /dev/console. | ||
280 | This device is special - it cannot be a controlling tty. | ||
281 | |||
282 | Proper solution is to use correct device instead of /dev/console. | ||
283 | |||
284 | cttyhack provides "quick and dirty" solution to this problem. | ||
285 | It analyzes stdin with various ioctls, trying to determine whether | ||
286 | it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line). | ||
287 | If it detects one, it closes stdin/out/err and reopens that device. | ||
288 | Then it executes given program. Usage example for /etc/inittab | ||
289 | (for busybox init): | ||
290 | |||
291 | ::respawn:/bin/cttyhack /bin/sh | ||
292 | |||
273 | endmenu | 293 | endmenu |