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-b9f4589650daunstable
parent
3e38aa9cd4
commit
ebe48096f3
|
@ -218,13 +218,14 @@ protected
|
|||
# notifications.
|
||||
#
|
||||
def restore_suspend
|
||||
if (orig_suspend)
|
||||
begin
|
||||
begin
|
||||
if (orig_suspend)
|
||||
Signal.trap("TSTP", orig_suspend)
|
||||
rescue
|
||||
else
|
||||
Signal.trap("TSTP", "DEFAULT")
|
||||
end
|
||||
|
||||
self.orig_suspend = nil
|
||||
rescue
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue