aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-12-10 07:06:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-12-10 07:06:04 +0000
commit2afabe8b830cc8c33f5f1984767af4b8dc54803b (patch)
tree2647f259f9584d874dca8a784af4dd87df6db57e /docs
parent191836845e4551fe6191dc0d43b45a0232bff8be (diff)
downloadbusybox-w32-2afabe8b830cc8c33f5f1984767af4b8dc54803b.tar.gz
busybox-w32-2afabe8b830cc8c33f5f1984767af4b8dc54803b.tar.bz2
busybox-w32-2afabe8b830cc8c33f5f1984767af4b8dc54803b.zip
init: remove superfluous forks and messing up with argv[0]
cttyhack: add stealing of ctty
Diffstat (limited to 'docs')
-rw-r--r--docs/ctty.htm4
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.
365becomes its controlling tty. 365becomes its controlling tty.
366</p><p>The BSD approach is that one has to explicitly call 366</p><p>The BSD approach is that one has to explicitly call
367</p><blockquote> 367</p><blockquote>
368<pre>ioctl(fd, TIOCSCTTY, ...); 368<pre>ioctl(fd, TIOCSCTTY, 0/1);
369</pre> 369</pre>
370</blockquote> 370</blockquote>
371 371
@@ -378,6 +378,8 @@ and (ii) it does not yet have a controlling tty, and
378(iii) maybe the tty should not already control some other session; 378(iii) maybe the tty should not already control some other session;
379if it does it is an error if we aren't root, or we steal the tty 379if it does it is an error if we aren't root, or we steal the tty
380if we are all-powerful. 380if we are all-powerful.
381[vda: correction: third parameter controls this: if 1, we steal tty from
382any such session, if 0, we don't steal]
381</p><p>Opening some terminal will give us a controlling tty, 383</p><p>Opening some terminal will give us a controlling tty,
382provided that (i) the current process is a session leader, and 384provided that (i) the current process is a session leader, and
383(ii) it does not yet have a controlling tty, and 385(ii) it does not yet have a controlling tty, and