From 7ae469692932aae4a587f746dbff61c1d8b12eb9 Mon Sep 17 00:00:00 2001 From: john haque Date: Fri, 3 Feb 2012 09:20:53 -0600 Subject: Read timeout documentation and bug fix. --- doc/gawk.1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/gawk.1') diff --git a/doc/gawk.1 b/doc/gawk.1 index 662ace35..eab20467 100644 --- a/doc/gawk.1 +++ b/doc/gawk.1 @@ -1129,6 +1129,14 @@ corresponding values of the two elements being compared. It should return a number less than, equal to, or greater than 0, depending on how the elements of the array are to be ordered. .TP +\fBPROCINFO["input", "READ_TIMEOUT"]\fP +specifies the timeout in milliseconds for reading data from +.I input +, where +.I input +is a redirection string or a filename. A value of zero or +less than zero means no timeout. +.TP \fBPROCINFO["version"]\fP the version of .IR gawk . @@ -3587,6 +3595,10 @@ and .B \-\^\-file options. .PP +The GAWK_READ_TIMEOUT environment variable can be used to specify a timeout +in milliseconds for reading input from a terminal, pipe +or two-way communication including sockets. +.PP For socket communication, two special environment variables can be used to control the number of retries .RB ( GAWK_SOCK_RETRIES ), and the interval between retries -- cgit v1.2.3