Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15168 > unrolled thread

Re: background, pipeline, hang

Started byChet Ramey <chet.ramey@case.edu>
First post2019-07-14 17:06 -0400
Last post2019-07-14 17:06 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: background, pipeline, hang Chet Ramey <chet.ramey@case.edu> - 2019-07-14 17:06 -0400

#15168 — Re: background, pipeline, hang

FromChet Ramey <chet.ramey@case.edu>
Date2019-07-14 17:06 -0400
SubjectRe: background, pipeline, hang
Message-ID<mailman.1335.1563138414.2688.bug-bash@gnu.org>
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.

Chet

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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web