Skip to content

Commit 0cbb6de

Browse files
author
Vladimir Kotal
committed
improve wording + formatting for pipe
1 parent 1f3a2e9 commit 0cbb6de

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

proc.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@
916916
\sltitle{\texttt{pipe()}}
917917
\texttt{int \funnm{pipe}(int \emph{fildes}[2]);}
918918
\begin{itemize}
919-
\item creates an unnamed pipe and allocates a pair of file descriptors
919+
\item creates an \emph{unnamed pipe} and allocates a pair of file descriptors
920920
\begin{itemize}
921921
\item \texttt{fildes[0]} \dots{} for reading from a pipe
922922
\item \texttt{fildes[1]} \dots{} for writing to a pipe
@@ -928,15 +928,17 @@
928928
\end{itemize}
929929
\item consumer gets \texttt{EOF} (i.e. \texttt{read()} returns
930930
\texttt{0}) only if all copies of \texttt{fildes[1]} are closed.
931-
\item named pipe (i.e. FIFO, see \funnm{mkfifo}) works the same way. The
932-
difference is any process can use it.
931+
\item \emph{named pipe} (i.e. FIFO, see \funnm{mkfifo}) works the same way.
932+
The difference is that any process (modulo permissions) can use it.
933933
\end{itemize}
934934
\end{slide}
935935

936936
\label{PIPE}
937937

938938
\begin{itemize}
939-
\item An unnamed pipe is created by one process and can be passed to its
939+
\item \emph{pipe} is an object with 2 endpoints; serves for passing data from
940+
one to the other.
941+
\item An \emph{unnamed pipe} is created by one process and can be passed to its
940942
children only via file descriptors inherited through \funnm{fork}. That
941943
limitation can be worked around via passing an open file descriptor via a
942944
u{}nix-domain socket. However, such a workaround is out of scope for this

0 commit comments

Comments
 (0)