Skip to content

Commit 601bf2f

Browse files
committed
On "stty tostop".
1 parent aa46691 commit 601bf2f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

signals.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
only because "it's the simplest way to kill a process" as you might run in
286286
trouble.
287287
\item Example on using \texttt{SIGQUIT} on Solaris (a standalone \texttt{sleep}
288-
program is used to avoid invoking shell built-in):
288+
program is used to avoid invoking a shell built-in):
289289

290290
\begin{verbatim}
291291
$ /usr/bin/sleep 10
@@ -319,7 +319,6 @@
319319
\texttt{SIGTTIN} & background read attempted from control terminal (stop) \\
320320
\texttt{SIGTTOU} & background write attempted to control terminal (stop) \\
321321
\end{tabular}
322-
323322
\end{slide}
324323

325324
\begin{itemize}
@@ -333,6 +332,13 @@
333332
\item the \texttt{SIGCHLD} signal is always received by the parent
334333
(no matter if \texttt{wait()} or \texttt{waitpid()} is used) unless
335334
explicitly ignored. See \example{signals/sigchld.c}
335+
\item If you write a program that prints anything onto its standard output and
336+
execute it in the background, you notice that usually the text shows up on your
337+
terminal (meaning no \texttt{SIGTTOU} was sent as that would have stopped the
338+
process on the controlling terminal write attempt). It is because the signal is
339+
sent (or not) by the terminal driver, and \texttt{stty} will tell you what is
340+
the current setting. If you see no \texttt{tostop}, you can set it up with
341+
``\texttt{stty tostop}'' and see the difference.
336342
\end{itemize}
337343

338344
%%%%%

0 commit comments

Comments
 (0)