aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-04-05 21:41:39 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-04-05 21:41:39 +0300
commitdb6e8faca70e60d2fa80e0affda3d9bef1e82eae (patch)
tree2ede6812410f1bfdba4e098a3d9dd92d725232f1 /doc/gawk.texi
parent2adf64c7b99ec6e8d1e4689b6484ace5295580b6 (diff)
parent1b5d1b8870cb0ac1c4b99f6cf67e3277427df864 (diff)
downloadegawk-db6e8faca70e60d2fa80e0affda3d9bef1e82eae.tar.gz
egawk-db6e8faca70e60d2fa80e0affda3d9bef1e82eae.tar.bz2
egawk-db6e8faca70e60d2fa80e0affda3d9bef1e82eae.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 23a25298..77bec7d1 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -27853,6 +27853,17 @@ As a side note, the assignment @samp{LC_ALL=C} in the @command{sort}
command ensures traditional Unix (ASCII) sorting from @command{sort}.
This is not strictly necessary here, but it's good to know how to do this.
+Be careful when closing the @code{"from"} end of a two-way pipe; in this
+case @command{gawk} waits for the child process to exit, which may cause
+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
+from the @code{"from"} end of a two-way pipe that has been closed.
+@end quotation
+
@cindex @command{gawk}, @code{PROCINFO} array in
@cindex @code{PROCINFO} array, and communications via ptys
You may also use pseudo-ttys (ptys) for