|author||Denis Vlasenko <firstname.lastname@example.org>||2008-02-19 02:57:07 +0000|
|committer||Denis Vlasenko <email@example.com>||2008-02-19 02:57:07 +0000|
init: fix bug 1111: restart actions were not splitting words:
::restart:/sbin/rc restart resulted in: exec of '/sbin/rc restart' failed: No such file or directory
Diffstat (limited to 'init/Config.in')
1 files changed, 9 insertions, 6 deletions
diff --git a/init/Config.in b/init/Config.in
index 4c5610246..f525abc8a 100644
@@ -47,15 +47,18 @@ config FEATURE_KILL_DELAY
- bool "Support running commands with a controlling-tty"
+ bool "Run commands with leading dash with controlling tty"
depends on INIT
- If this option is enabled a command starting with hyphen (-)
- is run in its own session (setsid(2)) and possibly with a
- controlling tty (TIOCSCTTY). This is not the traditional init
- behavour, but is often what you want in an embedded system where
- the console is only accessed during development or for maintenance.
+ If this option is enabled, init will try to give a controlling
+ tty to any command which has leading hyphen (often it's "-/bin/sh").
+ More precisely, init will do "ioctl(STDIN_FILENO, TIOCSCTTY, 0)".
+ If device attached to STDIN_FILENO can be a ctty but is not yet
+ a ctty for other session, it will become this process' ctty.
+ This is not the traditional init behavour, but is often what you want
+ in an embedded system where the console is only accessed during
+ development or for maintenance.
NB: using cttyhack applet may work better.