[Top][All Lists]

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

Re: background, pipeline, hang

From: Chet Ramey
Subject: Re: background, pipeline, hang
Date: Sun, 14 Jul 2019 17:06:45 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

On 7/13/19 5:55 AM, Mike Jonkmans wrote:

> This runs for two seconds:
>       bash --norc --noprofile -ic "trap 'tput hs' DEBUG; sleep 2 & :|:|:"
> While this immediately finishes:
>       bash --norc --noprofile -ic "trap ':' DEBUG; sleep 2 & :|:|:"

I believe this has to do with running a process that forks from the DEBUG
trap while executing a pipeline.

Just another reason executing a DEBUG trap for a simple command that's run
as part of a pipeline is a bad idea.

This looks like a Linux-only problem, so I'll look when I have better
access to a Linux machine.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

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