coreutils
[Top][All Lists]
Advanced

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

Re: prevent seq from inflow inflow on I/O errors


From: Pádraig Brady
Subject: Re: prevent seq from inflow inflow on I/O errors
Date: Thu, 28 Apr 2016 16:14:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 28/04/16 14:41, Assaf Gordon wrote:
Hello,

On Tue, Apr 26, 2016 at 5:32 AM, Pádraig Brady <address@hidden> wrote:
The subject should start with "tests:". Something like:

   tests: improve recent seq EPIPE test

Updated patch attached.

Note SIGPIPE may not be supported, so I'd also suggest a guard like:

(trap '' PIPE && yes | :) 2>&1 | grep -qF 'Broken pipe' ||
  skip_ 'trapping SIGPIPE is not supported'

cheers,
Pádraig.

p.s. For my own reference, programs that fail on EPIPE preclude
themselves for use with 'pipefail' setting in bash for example.
Though changing only coreutils to fail on EPIPE would be inconsistent.



reply via email to

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