GNU bug report logs - #33946
tail -f stops abruptly in AIX when piped.

Previous Next

Package: coreutils;

Reported by: "Ayappan P2" <ayappap2 <at> in.ibm.com>

Date: Tue, 1 Jan 2019 17:06:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #55 received at 33946 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Pádraig Brady <P <at> draigBrady.com>, 33946 <at> debbugs.gnu.org
Subject: Re: bug#33946: tail -f stops abruptly in AIX when piped.
Date: Sun, 20 Jan 2019 21:20:53 +0100
On 1/20/19 10:00 AM, Pádraig Brady wrote:
> Right. So the broken pipe is detected fine which is the main thing.
> It's just that the osc system has SIGPIPE ignored
> (python2 based systems do this by default, which may be related).

Bingo.

I confirmed that 'osc' is getting into the SIGPIPE handling by
directly chroot'ing into the build directory: the (previous version
of the) test passed.

> I was looking are setting normal handling with `trap - SIGPIPE` in the test,
> but that's only effective if ignored in the same shell.
> If the parent/login shell has ignored SIGPIPE,
> then resetting it is ineffective.
> However...
> 
> tail should be exiting irrespective of the handling of SIGPIPE.
> In fact it goes into an infinite loop in the edge case of:
> inotify + ignored sigpipe + early exit filters.
> 
> The attached ensures the tail process exits,
> which handles the infinite loop and the test failure.

LGTM: the test passes under 'osc' now, too.

Thanks & have a nice day,
Berny





This bug report was last modified 6 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.