lib/launchy/spawnable/application.rb in launchy-0.1.1 vs lib/launchy/spawnable/application.rb in launchy-0.1.2
- old
+ new
@@ -65,10 +65,14 @@
def run(cmd,*args)
args.unshift(cmd)
if my_os_family == :windows then
require 'win32/process'
end
- child_pid = fork { system args.join(' ') }
+ # fork and the child process should NOT run any exit handlers
+ child_pid = fork do
+ system args.join(' ')
+ exit!
+ end
Process.detach(child_pid)
end
end
end
end