Skip to content

Commit 61c2095

Browse files
author
Vladimir Kotal
committed
add mkfifo
1 parent 47cf924 commit 61c2095

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

file-api.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385
\pageref{MKFIFO}. Using an unnamed pipe is described later on page
386386
\pageref{PIPE}.
387387
\item A consumer is a process that opens a file/pipe for reading, a producer
388-
opens a file/pipe for writing.
388+
opens a file/pipe for writing.
389389
\item It is possible to open a named pipe for reading and writing at the same
390390
time. The same process thus can write to the pipe and then read the same data
391391
from it.
@@ -419,6 +419,7 @@
419419
Another possibility with named pipes:
420420

421421
\begin{verbatim}
422+
$ mkfifo fifo
422423
$ while [ 1 ]; do cat /etc/passwd; done >> /tmp/bigpasswd
423424
^C
424425
$ read < fifo &

0 commit comments

Comments
 (0)