put the original suspend handler back, even if it was nil. fixes 2102

git-svn-id: file:///home/svn/framework3/trunk@9547 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2010-06-16 22:41:53 +00:00
parent 3e38aa9cd4
commit ebe48096f3
1 changed files with 5 additions and 4 deletions

View File

@ -218,13 +218,14 @@ protected
# notifications.
#
def restore_suspend
if (orig_suspend)
begin
if (orig_suspend)
Signal.trap("TSTP", orig_suspend)
rescue
else
Signal.trap("TSTP", "DEFAULT")
end
self.orig_suspend = nil
rescue
end
end