File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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.
932932The difference is that any process (modulo permissions) can use it.
933933\end {itemize }
You can’t perform that action at this time.
0 commit comments