Skip to content

Commit ba85a7b

Browse files
author
Vladimir Kotal
committed
add comment to pipe example
1 parent b2e4f1a commit ba85a7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proc.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,9 +950,12 @@
950950
\texttt{fildes[0]} is also open for writing and if \texttt{fildes[1]} is also
951951
open for reading. FreeBSD and Solaris provide bidirectional pipes while Linux
952952
may not. It is best to assume unidirectional pipes.
953+
\item Writing to a pipe without readers results in the \texttt{SIGPIPE} signal
954+
delivered to the process. The default reaction to that event is process
955+
termination. Example: \example{pipe/broken-pipe.c}
956+
\item Example: \example{pipe/deadlock-in-read.c}
953957
\item \emsl{Important:} the same rules applied to reading and writing from/to
954958
named pipes stand for unnamed pipes as well, see page \pageref{NAMEDPIPE}.
955-
\item Example: \example{pipe/broken-pipe.c}, \example{pipe/deadlock-in-read.c}
956959
\end{itemize}
957960

958961
%%%%%

0 commit comments

Comments
 (0)