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
$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