[Top][All Lists]

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

Re: Loop within trap handling

From: Chet Ramey
Subject: Re: Loop within trap handling
Date: Mon, 2 Apr 2018 09:59:26 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 3/28/18 10:02 AM, address@hidden wrote:

> Bash Version: 4.4
> Patch Level: 19
> Release Status: release
> Description:
>       A user reports a problem with example code included. By using the
>       the code shown below and doing Ctrl-C twice the code hangs within
>       a SIGINT loop if /bin/echo is used instead of builtin echo command.

Thanks for the report. The problem is indeed in the combination of a non-
interactive shell, a trap handler for SIGINT, an external process in the
trap handler, and a SIGINT within the trap after the external process runs.
I'll fix it.


``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]