[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2457-g374ad6
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2457-g374ad65 |
Date: |
Mon, 27 Mar 2017 15:19:24 -0400 (EDT) |
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, master has been updated
via 374ad65e52cb612340b460340b0b858a7577374d (commit)
from 5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b (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=374ad65e52cb612340b460340b0b858a7577374d
commit 374ad65e52cb612340b460340b0b858a7577374d
Author: Arnold D. Robbins <address@hidden>
Date: Mon Mar 27 22:19:07 2017 +0300
Minor cleanup in main.c:usage.
diff --git a/main.c b/main.c
index 73e6344..530d37f 100644
--- a/main.c
+++ b/main.c
@@ -628,14 +628,14 @@ By default it reads standard input and writes standard
output.\n\n"), fp);
if (ferror(fp)) {
/* don't warn about stdout/stderr if EPIPE, but do error exit */
- if (errno != EPIPE) {
- if (fp == stdout)
- warning(_("error writing standard output
(%s)"), strerror(errno));
- else if (fp == stderr)
- warning(_("error writing standard error (%s)"),
strerror(errno));
- } else if (errno == SIGPIPE)
+ if (errno == EPIPE)
die_via_sigpipe();
+ if (fp == stdout)
+ warning(_("error writing standard output (%s)"),
strerror(errno));
+ else if (fp == stderr)
+ warning(_("error writing standard error (%s)"),
strerror(errno));
+
// some other problem than SIGPIPE
exit(EXIT_FAILURE);
}
-----------------------------------------------------------------------
Summary of changes:
main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2457-g374ad65,
Arnold Robbins <=