* src/wc.c (write_counts): Call write_error() if any pending errors.
* tests/misc/write-errors.sh: Add a test case.
* NEWS: Mention the improvement.
'timeout' on Linux will always terminate the child in the case where the
timeout process itself dies, like when it receives a KILL signal for example.
+ 'wc' now exits promptly upon receiving a write error,
+ which is significant when processing many input files.
+
** Build-related
'kill' and 'uptime' are no longer built by default. These programs can be
if (file)
printf (" %s", strchr (file, '\n') ? quotef (file) : file);
putchar ('\n');
+
+ if (ferror (stdout))
+ write_error ();
}
/* Read FD and return a summary. */
tr . . < /dev/zero
unexpand /dev/zero
uniq -z -D /dev/zero
+wc --version; yes /dev/null | tr '\\\\n' '\\\\0' | wc --files0-from=-
yes
" |
sort -k 1b,1 > all_writers || framework_failure_