On Fri, 26 Nov 2010 15:37:46 -0600 Jonathan Nieder wrote: > Francesco Poli wrote: > > > Hi Jonathan and thanks for your bug report! ;-) > > That was fast. :)
It's good to see that it is appreciated! ;-) > > > Maybe the trap instruction should be moved before everything else: > > I have to think about it... > > Maybe it is a ruby bug, then (the default signal handler), though that > is harder to say. I don't think that the Ruby interpreter should be blamed for this. As I said, the interpreter had not yet seen the trap instruction, when the SIGINT was received... > > > And maybe the exit status should be turned into 130 ... > > > > I don't know when I can manage to find the time to do that. > > Anyway, Debian testing is currently in deep freeze, so *don't* expect to > > see this modification hit testing or unstable soon. > > Yes, I don't expect a quick change; mostly wanted to record it in case > I find time to look at this later. 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 am testing apt-listbugs with this modification: it seems to be able to trap SIGINT signals received during the early stages of runtime. $ apt-listbugs list apt ^CInterrupted $ echo $? 130 If everything else looks good and the patch does not seem to break anything, this fix could be part of the next upload (which however is not planned for the near future)... Bye. -- http://www.inventati.org/frx/progs/scripts/pdebuild-hooks.html Need some pdebuild hook scripts? ..................................................... Francesco Poli . GnuPG key fpr == C979 F34B 27CE 5CD8 DC12 31B5 78F4 279B DD6D FCF4
pgp28j2nBj7Eh.pgp
Description: PGP signature