aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-04-06 05:54:19 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-04-06 05:54:19 +0300
commitcfb773bb093dadfa715816c75d438f97e387e71a (patch)
tree293aedc7402a7c1e25af42f235133ce9caa77b25 /doc/gawk.texi
parentdb6e8faca70e60d2fa80e0affda3d9bef1e82eae (diff)
downloadegawk-cfb773bb093dadfa715816c75d438f97e387e71a.tar.gz
egawk-cfb773bb093dadfa715816c75d438f97e387e71a.tar.bz2
egawk-cfb773bb093dadfa715816c75d438f97e387e71a.zip
Allow r/w for a partially closed two-way pipe to be nonfatal.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 77bec7d1..fd71dbc9 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -27859,9 +27859,16 @@ your program to hang. (Thus, this particular feature is of much less
use in practice than being able to close the @code{"to"} end.)
@quotation CAUTION
-It is a fatal error to write to the @code{"to"} end of a two-way
-pipe which has been closed. It is also a fatal error to read
+Normally,
+it is a fatal error to write to the @code{"to"} end of a two-way
+pipe which has been closed, and it is also a fatal error to read
from the @code{"from"} end of a two-way pipe that has been closed.
+
+You may set @code{PROCINFO["@var{command}", "NONFATAL"]} to
+make such operations become nonfatal, in which case you then need
+to check @code{ERRNO} after each @code{print}, @code{printf},
+or @code{getline}.
+@xref{Nonfatal}, for more information.
@end quotation
@cindex @command{gawk}, @code{PROCINFO} array in