diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ctty.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ctty.htm b/docs/ctty.htm index b8bce003c..8f466cdde 100644 --- a/docs/ctty.htm +++ b/docs/ctty.htm | |||
@@ -145,7 +145,7 @@ PID (process ID), PGID (process group ID) and SID (session ID) | |||
145 | of processes. With a shell that does not know about job control, | 145 | of processes. With a shell that does not know about job control, |
146 | like <code>ash</code>, each of its children will be in the same session | 146 | like <code>ash</code>, each of its children will be in the same session |
147 | and have the same process group as the shell. With a shell that knows | 147 | and have the same process group as the shell. With a shell that knows |
148 | about job control, like <code>bash</code>, the processes of one pipeline. like | 148 | about job control, like <code>bash</code>, the processes of one pipeline, like |
149 | </p><blockquote> | 149 | </p><blockquote> |
150 | <pre>% cat paper | ideal | pic | tbl | eqn | ditroff > out | 150 | <pre>% cat paper | ideal | pic | tbl | eqn | ditroff > out |
151 | </pre> | 151 | </pre> |
@@ -227,7 +227,7 @@ controlling tty. If there is none, this returns a random value | |||
227 | larger than 1 that is not a process group ID. | 227 | larger than 1 that is not a process group ID. |
228 | </p><p>A process can set the foreground process group in its session | 228 | </p><p>A process can set the foreground process group in its session |
229 | using <code>tcsetpgrp(fd,pgrp)</code>, where <code>fd</code> refers to its | 229 | using <code>tcsetpgrp(fd,pgrp)</code>, where <code>fd</code> refers to its |
230 | controlling tty, and <code>pgrp</code> is a process group in the | 230 | controlling tty, and <code>pgrp</code> is a process group in |
231 | its session, and this session still is associated to the controlling | 231 | its session, and this session still is associated to the controlling |
232 | tty of the calling process. | 232 | tty of the calling process. |
233 | </p><p>How does one get <code>fd</code>? By definition, <code>/dev/tty</code> | 233 | </p><p>How does one get <code>fd</code>? By definition, <code>/dev/tty</code> |