lkml.org 
[lkml]   [2011]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Bash not reacting to Ctrl-C

    * Michael Witten <mfwitten@gmail.com> wrote:

    > On Mon, Feb 7, 2011 at 07:08, Oleg Nesterov <oleg@redhat.com> wrote:
    > > Now that it is clear what happens, the test-case becomes even more
    > > trivial:
    > >
    > >        bash-4.1$ ./bash -c 'while true; do /bin/true; done'
    > >        ^C^C
    > >
    > > needs 4-5 attempts on my machine.
    >
    > I feel like the odd penguin out.
    >
    > I can't reproduce the behavior in question when using that example (I
    > haven't tried the other).
    >
    > I'm running:
    >
    > * bash version 4.1.9(2)-release (i686-pc-linux-gnu)
    >
    > * linux 2.6.38-rc4 (100b33c8bd8a3235fd0b7948338d6cbb3db3c63d)

    Oleg provided another testcase, can you reproduce the Ctrl-C problem with this
    it?

    #!/bin/bash

    perl -we '$SIG{INT} = sub {exit}; sleep'

    echo "Hehe, I am going to sleep after ^C"
    sleep 100


    Thanks,

    Ingo
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2011-02-09 15:55    [W:4.180 / U:0.416 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site