We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13afc2e commit 42f1e96Copy full SHA for 42f1e96
file-api.tex
@@ -407,6 +407,19 @@
407
PIPE
408
\end{verbatim}
409
410
+Another possibility with named pipes:
411
+
412
+\begin{verbatim}
413
+$ while [ 1 ]; do cat /etc/passwd; done >> /tmp/bigpasswd
414
+^C
415
+$ read < fifo &
416
+[1] 65946
417
+$ cat /tmp/bigpasswd > fifo
418
+[1]+ Done read < fifo
419
+$ echo $?
420
+141
421
+\end{verbatim}
422
423
\item When opening a pipe for writing only with \texttt{O\_NONBLOCK} and without
424
an existing consumer, the call returns -1 and \texttt{errno} is set to
425
\texttt{ENXIO}. This asymmetry in opening a pipe for reading in non-blocking
0 commit comments