Class | ChildProcess::AbstractProcess |
In: |
lib/childprocess/abstract_process.rb
|
Parent: | Object |
POLL_INTERVAL | = | 0.1 |
cwd | [RW] | Set the child‘s current working directory. |
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) |
environment | [R] | Modify the child‘s environment variables |
exit_code | [R] | |
leader | [RW] |
Set this to true to make the child process the leader of a new process group
This can be used to make sure that all grandchildren are killed when the child process dies. |
Wait for the process to exit, raising a ChildProcess::TimeoutError if the timeout expires.
Forcibly terminate the process, using increasingly harsher methods if possible.
@param [Fixnum] timeout (3) Seconds to wait before trying the next method.