Francesco Poli wrote: > On Sat, 27 Nov 2010 17:49:08 -0600 Jonathan Nieder wrote: >> Francesco Poli wrote:
>>> I have somewhat good news for you: I prepared a patch that moves the >>> trap instruction before everything else, in order to intercept early >>> SIGINTs too. [...] > I've just pushed the commit to the > public git repository. I think there is a ruby (documentation?) bug here: for example ------ 8< ------ diff --git a/apt-listbugs b/apt-listbugs index 2e4b5cb..d762cd5 100755 --- a/apt-listbugs +++ b/apt-listbugs @@ -235,7 +235,7 @@ apt.conf(5), sensible-browser(1), www-browser(1), querybts(1) # exit gracefully when user presses [Ctrl+C] -Signal.trap("SIGINT") { $stderr.puts "Interrupted"; exit 130 } +Kernel.trap("SIGINT", "SIG_DFL") if File.expand_path(__FILE__).match(/^\/usr\/s?bin\//) ------ >8 ------ doesn't actually set the handling of SIGINT to SIG_DFL at all, but makes it print a backtrace. Given that bug, your patch would seem to be the best we can do. So I like it. Thanks, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org