diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-10 07:06:04 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-10 07:06:04 +0000 |
commit | 2afabe8b830cc8c33f5f1984767af4b8dc54803b (patch) | |
tree | 2647f259f9584d874dca8a784af4dd87df6db57e /docs | |
parent | 191836845e4551fe6191dc0d43b45a0232bff8be (diff) | |
download | busybox-2afabe8b830cc8c33f5f1984767af4b8dc54803b.tar.gz |
init: remove superfluous forks and messing up with argv[0]
cttyhack: add stealing of ctty
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ctty.htm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ctty.htm b/docs/ctty.htm index 26d2c7956..b8bce003c 100644 --- a/docs/ctty.htm +++ b/docs/ctty.htm @@ -365,7 +365,7 @@ this is a great mystery. becomes its controlling tty. </p><p>The BSD approach is that one has to explicitly call </p><blockquote> -<pre>ioctl(fd, TIOCSCTTY, ...); +<pre>ioctl(fd, TIOCSCTTY, 0/1); </pre> </blockquote> @@ -378,6 +378,8 @@ and (ii) it does not yet have a controlling tty, and (iii) maybe the tty should not already control some other session; if it does it is an error if we aren't root, or we steal the tty if we are all-powerful. +[vda: correction: third parameter controls this: if 1, we steal tty from +any such session, if 0, we don't steal] </p><p>Opening some terminal will give us a controlling tty, provided that (i) the current process is a session leader, and (ii) it does not yet have a controlling tty, and |