# File lib/launchy/detect/runner.rb, line 116 def wet_run( cmd, *args ) child_pid = fork do close_file_descriptors unless Launchy.debug? Launchy.log("wet_run: before exec in child process") exec( *shell_commands( cmd, *args )) exit! end Process.detach( child_pid ) end
# File lib/launchy/detect/runner.rb, line 126 def close_file_descriptors [$stdin, $stdout, $stderr].each do |io| io.reopen( "/dev/null", "r+" ) end end