don't kill a session when the user ctrl-C's during a command run by sessions -c or a script/postmod

git-svn-id: file:///home/svn/framework3/trunk@12513 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-05-02 20:40:19 +00:00
parent 366bc8979d
commit 259bf9695a
1 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,8 @@ class CommandShell
end end
end end
rescue ::Timeout::Error rescue ::Timeout::Error
rescue ::Interrupt => e
raise e
rescue ::Exception => e rescue ::Exception => e
shell_close shell_close
raise e raise e