Class: Launchy::Detect::Runner::Forkable

Inherits:
Launchy::Detect::Runner show all
Defined in:
lib/launchy/detect/runner.rb

Instance Method Summary collapse

Methods inherited from Launchy::Detect::Runner

#commandline_normalize, detect, #dry_run, #run, #shell_commands

Methods included from Launchy::DescendantTracker

#children, #find_child, #inherited

Instance Method Details

#wet_run(cmd, *args) ⇒ Object



102
103
104
105
106
107
108
# File 'lib/launchy/detect/runner.rb', line 102

def wet_run( cmd, *args )
  child_pid = fork do
    exec( *shell_commands( cmd, *args ))
    exit!
  end
  Process.detach( child_pid )
end