put the old sigint handler back, fixes #2103

git-svn-id: file:///home/svn/framework3/trunk@9546 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-06-16 21:57:46 +00:00
parent b35baa39f7
commit 3e38aa9cd4
1 changed files with 4 additions and 2 deletions

View File

@ -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,9 +47,11 @@ class IrbShell
catch(:IRB_EXIT) do
irb.eval_input
end
trap("SIGINT", old_sigint)
end
end
end
end
end
end