aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-04-02 22:52:11 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-04-04 06:37:44 +0300
commitb332053a160357e6c30c22f9ca90af9129e4550b (patch)
tree95f48921b1ebc8e5ca0c45114bcd8b6bf37efdd9 /doc/gawktexi.in
parent464aa113b70b30ab9b1b00d1de5ccf4b0230b720 (diff)
downloadegawk-b332053a160357e6c30c22f9ca90af9129e4550b.tar.gz
egawk-b332053a160357e6c30c22f9ca90af9129e4550b.tar.bz2
egawk-b332053a160357e6c30c22f9ca90af9129e4550b.zip
Document about using closed end of two-way pipes.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index cd240a43..4d2a76f3 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -26598,6 +26598,11 @@ 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.)
+
@cindex @command{gawk}, @code{PROCINFO} array in
@cindex @code{PROCINFO} array, and communications via ptys
You may also use pseudo-ttys (ptys) for