bug-bash
[Top][All Lists]
Advanced

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

Re: Latest fix for DEBUG causes pipes to fail when used with trap and an


From: Chet Ramey
Subject: Re: Latest fix for DEBUG causes pipes to fail when used with trap and an interactive shell
Date: Fri, 28 Feb 2014 10:59:02 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 2/28/14 2:48 AM, Moe Tunes wrote:

> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 4.3
> Patch Level: 0
> Release Status: release
> 
> Description:
>     Pipes stop working in this version when DEBUG is used with trap in an
> interactive shell

It turns out that this is Linux-specific only to the extent that Linux
requires process group synchronization.  One of the changes to trap
handling added a level of saving state that was redundant in the case of
the DEBUG trap, and that broke this synchronization.  I've attached a
patch that fixes the problem.

Chet

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

Attachment: debug-trap.patch
Description: Source code patch


reply via email to

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