put the old sigint handler back, fixes #2103
git-svn-id: file:///home/svn/framework3/trunk@9546 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b35baa39f7
commit
3e38aa9cd4
|
@ -39,7 +39,7 @@ class IrbShell
|
|||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||
|
||||
# Trap interrupt
|
||||
trap("SIGINT") do
|
||||
old_sigint = trap("SIGINT") do
|
||||
irb.signal_handle
|
||||
end
|
||||
|
||||
|
@ -47,6 +47,8 @@ class IrbShell
|
|||
catch(:IRB_EXIT) do
|
||||
irb.eval_input
|
||||
end
|
||||
|
||||
trap("SIGINT", old_sigint)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue