-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Feb 18, 2010, at 20:59 , Andrew Eberbach wrote:

> Hi
> 
> I've been noticing that irb (and as a result script/console in rails)
> don't behave correctly with Control C. Nothing would happen when I hit
> control C until I hit enter or a few more keys and then it would clear
> the line and show a ^C and reset to the prompt. This doesn't happen on
> Linux and it didn't happen on 10.5
> 
> If there's a long running process in irb hitting control c works as
> expected but not if it's just sitting at a prompt.
> 
> I played around with the ext/readline.c and found that if I put a
> 
> rl_catch_signals = 0;
> 
> (see http://tiswww.case.edu/php/chet/readline/readline.html)
> 
> in Init_readline()
> 
> Then everything works as normal. Should this be added as a patch?
> Reading the readline docs it seems to me that what's happening is the
> internal readline handler gets stuck sending SIGINT back to the ruby
> process even though there's a trap("SIGINT") defined. Any ideas?
> 
> 
> Andrew
> 

Can reproduce this both with 1.8.7 and 1.9.1 on 10.6 and with 1.8.7 on 10.5.
Good thing: You get used to it.

Konstantin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)

iQEcBAEBAgAGBQJLfafVAAoJEDb0VmU+GZ4kBZUIAJablFkorYRYMV8s7y6Xqljy
hmquv+89F1kKv5l361d+hfXkaEgn0tERXTIhphY/qhFlmbUcfOudx7B67Ef67CL8
keijrX+k+GrbA49WbsqGobCKBP1uvx9FVeZonwYleb0E6uFAuSpxDiXRNlJ35UE/
AfMg+3z54r2/BqBpu+6Pd65HdkFv9/np0jRG+H7/Lvm9Pk07c5rZZXUnsGP5uEXC
SJtd3V8uYIAaDmsfvgLzIGpTRJRES5hvdr0+/Bjdfw766ZXNshChLgFo5lpEOd4c
UgMay5Kj2I6VRzR9+ru2CbpDMRWwLQ8lDw6SzKC7KLThOXY8rgVnsM783qAHCsk=
=07P9
-----END PGP SIGNATURE-----