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-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.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. | |||
365 | becomes its controlling tty. | 365 | becomes 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; |
379 | if it does it is an error if we aren't root, or we steal the tty | 379 | if it does it is an error if we aren't root, or we steal the tty |
380 | if we are all-powerful. | 380 | if we are all-powerful. |
381 | [vda: correction: third parameter controls this: if 1, we steal tty from | ||
382 | any 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, |
382 | provided that (i) the current process is a session leader, and | 384 | provided 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 |