gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5442-ge9a78cb0


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5442-ge9a78cb0
Date: Mon, 25 Dec 2023 15:29:40 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-5.3-stable has been updated
       via  e9a78cb00374c49d3f2fd26fbe04fc05895b5ea7 (commit)
      from  4217d4bd8600d49335d8a1d2922d5a1ee1921d7c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=e9a78cb00374c49d3f2fd26fbe04fc05895b5ea7

commit e9a78cb00374c49d3f2fd26fbe04fc05895b5ea7
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Mon Dec 25 22:29:18 2023 +0200

    Make GAWK_READ_TIMEOUT work correctly.

diff --git a/ChangeLog b/ChangeLog
index ab3e2fb7..25d46f4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-25         Andrew J. Schorr      <aschorr@telemetry-investments.com>
+
+       * io.c (get_read_timeout): Make gawk match the doc and have
+       GAWK_READ_TIMEOUT work if no entry in PROCINFO. Thanks
+       to Ed Morton for the report.
+
 2023-12-24         Arnold D. Robbins     <arnold@skeeve.com>
 
        * debug.c (print_array): Use the subscript as the
diff --git a/io.c b/io.c
index 881178e1..c423da67 100644
--- a/io.c
+++ b/io.c
@@ -4424,7 +4424,7 @@ in_PROCINFO(const char *pidx1, const char *pidx2, NODE 
**full_idx)
 static long
 get_read_timeout(IOBUF *iop)
 {
-       long tmout = 0;
+       long tmout = read_default_timeout;      /* initialized from env. 
variable in init_io() */
 
        if (PROCINFO_node != NULL) {
                const char *name = iop->public.name;
@@ -4448,8 +4448,7 @@ get_read_timeout(IOBUF *iop)
                        (void) force_number(val);
                        tmout = get_number_si(val);
                }
-       } else
-               tmout = read_default_timeout;   /* initialized from env. 
variable in init_io() */
+       }
 
        /* overwrite read routine only if an extension has not done so */
        if ((iop->public.read_func == ( ssize_t(*)() ) read) && tmout > 0)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog | 6 ++++++
 io.c      | 5 ++---
 2 files changed, 8 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]