[Top][All Lists]

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

bug#33946: tail -f stops abruptly in AIX when piped.

From: Bernhard Voelker
Subject: bug#33946: tail -f stops abruptly in AIX when piped.
Date: Sun, 20 Jan 2019 21:20:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

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).


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,

reply via email to

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