bug-bash
[Top][All Lists]
Advanced

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

Re: [BUG] Bash not reacting to Ctrl-C


From: Oleg Nesterov
Subject: Re: [BUG] Bash not reacting to Ctrl-C
Date: Fri, 11 Feb 2011 22:00:59 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On 02/11, Chet Ramey wrote:
>
> You do realize that this case is indistinguishable from the original
> scenario in question: the child gets the SIGINT, handles it, and exits
> successfully (or not).

I already tried to discuss this, but you didn't reply ;) See
http://www.mail-archive.com/address@hidden/msg08528.html

So, if I understand correctly, you mean that

        #!/bin/sh

        interactive_application

        echo DONE

shouldn't be interrupted by SIGINT after interactive_application exits.
For example, it can be a text-editor which treats SIGINT specially.

But, in this case, shouldn't we fix the script above? In this case
the shell and the application should not run in the same tty->pgrp
group, or we can add "trap SIGINT".

Oleg.




reply via email to

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