Thread.critical does not exist in ruby 1.9 anymore
[booh] / bin / booh
index 7b66e2eaacd1290043afeab7192541c17546865a..a5db62400be49c1328256853e4959c054fa6ded1 100644 (file)
--- a/bin/booh
+++ b/bin/booh
@@ -2181,11 +2181,9 @@ end
 
 def call_backend(cmd, waitmsg, mode, params)
     pipe = Tempfile.new("boohpipe")
-    Thread.critical = true
     path = pipe.path
     pipe.close!
     system("mkfifo #{path}")
-    Thread.critical = false
     cmd += " --info-pipe #{path}"
     button, w8 = backend_wait_message($main_window, waitmsg, path, mode)
     pid = nil
@@ -3039,12 +3037,10 @@ def open_file_user(filename)
         $orig_filename = $filename
         $main_window.title = 'booh - ' + File.basename($orig_filename)
         tmp = Tempfile.new("boohtemp")
-        Thread.critical = true
         $filename = tmp.path
         tmp.close!
         #- for security
         ios = File.open($filename, File::RDWR|File::CREAT|File::EXCL)
-        Thread.critical = false
         ios.close
         $tempfiles << $filename << "#{$filename}.backup"
     else