class Launchy::Detect::Runner::Forkable - launchy-2.4.3 Documentation

# class Launchy::Detect::Runner::Forkable

### Attributes

child_pid[R]

### Public Instance Methods

wet_run( cmd, *args ) click to toggle source

    # File lib/launchy/detect/runner.rb, line 119
    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_or_raise( cmd, *args )
        exit!
      end
      Process.detach( @child_pid )
    end