]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: fix handling of broken pipes with SIGPIPE ignored
authorPádraig Brady <P@draigBrady.com>
Sun, 20 Jan 2019 08:13:15 +0000 (00:13 -0800)
committerPádraig Brady <P@draigBrady.com>
Sun, 20 Jan 2019 20:53:24 +0000 (12:53 -0800)
commitfa50623394f491b975dbd7ad73193519dd721771
tree3455287ba8b09719103d57602161588de26a27ac
parent17983b2cb3bccbb4fa69691178caddd99269bda9
tail: fix handling of broken pipes with SIGPIPE ignored

* init.cfg (trap_sigpipe_or_skip_): A new function refactored from...
* tests/misc/printf-surprise.sh: ...here.
* tests/misc/seq-epipe.sh. Likewise.
* src/tail.c (die_pipe): Ensure we exit upon sending SIGPIPE.
* tests/tail-2/pipe-f.sh: Ensure we exit even if SIGPIPE is ignored.
* NEWS: Mention the bug fix.
NEWS
init.cfg
src/tail.c
tests/misc/printf-surprise.sh
tests/misc/seq-epipe.sh
tests/tail-2/pipe-f.sh