Class ChildProcess::AbstractProcess
In: lib/childprocess/abstract_process.rb
Parent: Object

Methods

alive?   crashed?   exited?   io   new   pid   poll_for_exit   start   stop  

Constants

POLL_INTERVAL = 0.1

Attributes

detach  [RW]  Set this to true if you do not care about when or if the process quits.
duplex  [RW]  Set this to true if you want to write to the process’ stdin (process.io.stdin)
exit_code  [R] 

Public Class methods

Create a new process with the given args.

@api private @see ChildProcess.build

Public Instance methods

Is this process running?

@return [Boolean]

Returns true if the process has exited and the exit code was not 0.

@return [Boolean]

Did the process exit?

@return [Boolean]

Returns a ChildProcess::AbstractIO subclass to configure the child‘s IO streams.

Wait for the process to exit, raising a ChildProcess::TimeoutError if the timeout expires.

Launch the child process

@return [AbstractProcess] self

Forcibly terminate the process, using increasingly harsher methods if possible.

@param [Fixnum] timeout (3) Seconds to wait before trying the next method.

[Validate]