Land #6864, Meterp Suspend

bug/bundler_fix
David Maloney 2016-05-16 11:13:43 -05:00
commit c40b8ea3fb
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 5 additions and 5 deletions

View File

@ -253,11 +253,11 @@ protected
# Installs a signal handler to monitor suspend signal notifications.
#
def handle_suspend
if (orig_suspend == nil)
if orig_suspend.nil?
begin
self.orig_suspend = Signal.trap("TSTP") {
_suspend
}
self.orig_suspend = Signal.trap("TSTP") do
Thread.new { _suspend }.join
end
rescue
end
end
@ -269,7 +269,7 @@ protected
#
def restore_suspend
begin
if (orig_suspend)
if orig_suspend
Signal.trap("TSTP", orig_suspend)
else
Signal.trap("TSTP", "DEFAULT")