Skip to content

Commit b2e4f1a

Browse files
author
Vladimir Kotal
committed
more pipe wording
1 parent 0cbb6de commit b2e4f1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proc.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -918,16 +918,16 @@
918918
\begin{itemize}
919919
\item creates an \emph{unnamed pipe} and allocates a pair of file descriptors
920920
\begin{itemize}
921-
\item \texttt{fildes[0]} \dots{} for reading from a pipe
922-
\item \texttt{fildes[1]} \dots{} for writing to a pipe
921+
\item \texttt{fildes[0]} \dots{} for reading from the pipe
922+
\item \texttt{fildes[1]} \dots{} for writing to the pipe
923923
\end{itemize}
924924
\item the system makes sure that:
925925
\begin{itemize}
926926
\item producer blocks on writing if the pipe is full
927927
\item consumer blocks on reading if the pipe is empty
928928
\end{itemize}
929-
\item consumer gets \texttt{EOF} (i.e. \texttt{read()} returns
930-
\texttt{0}) only if all copies of \texttt{fildes[1]} are closed.
929+
\item consumer gets \texttt{EOF} (i.e. \texttt{read()} on \texttt{fildes[0]}
930+
returns \texttt{0}) only if all copies of \texttt{fildes[1]} are closed.
931931
\item \emph{named pipe} (i.e. FIFO, see \funnm{mkfifo}) works the same way.
932932
The difference is that any process (modulo permissions) can use it.
933933
\end{itemize}

0 commit comments

Comments
 (0)