gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-289


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2894-gdf879c9
Date: Mon, 22 Jan 2018 14:39:16 -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-4.2-stable has been updated
       via  df879c99ee77225dae7d75a7b7783224941a1e99 (commit)
      from  49194a4b354f7187a6089cb2700f7025db51439a (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=df879c99ee77225dae7d75a7b7783224941a1e99

commit df879c99ee77225dae7d75a7b7783224941a1e99
Author: Arnold D. Robbins <address@hidden>
Date:   Mon Jan 22 21:38:54 2018 +0200

    Fix inplace tests on BSD systems.

diff --git a/ChangeLog b/ChangeLog
index 5238af7..0c054d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-01-22         Arnold D. Robbins     <address@hidden>
+
+       Fix the inplace tests on *BSD systems.
+
+       * main.c (main): Add O_APPEND flag to fileno(stderr).
+
 2018-01-17         Arnold D. Robbins     <address@hidden>
 
        * builtin.c (do_isarray): Check that tmp is Node_var
diff --git a/main.c b/main.c
index 5598378..79782a8 100644
--- a/main.c
+++ b/main.c
@@ -246,6 +246,14 @@ main(int argc, char **argv)
        if ((cp = getenv("GAWK_LOCALE_DIR")) != NULL)
                locale_dir = cp;
 
+#if defined(F_GETFL) && defined(O_APPEND)
+       int flags = fcntl(fileno(stderr), F_GETFL, NULL);
+       if (flags >= 0 && (flags & O_APPEND) == 0) {
+               flags |= O_APPEND;
+               (void) fcntl(fileno(stderr), F_SETFL, flags);
+       }
+#endif
+
 #if defined(LOCALEDEBUG)
        initial_locale = locale;
 #endif

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

Summary of changes:
 ChangeLog | 6 ++++++
 main.c    | 8 ++++++++
 2 files changed, 14 insertions(+)


hooks/post-receive
-- 
gawk



reply via email to

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