class Run::Process

Defined in:

run/process.cr

Instance Method Summary

Instance Method Detail

def abort(signal : Signal | Nil = nil) #

Aborts this process.


[View source]
def aborted? : Bool | Nil #

Tests if the running process is aborted.


[View source]
def context : Context #

Returns this context.


[View source]
def error : IO #

Returns this error IO.


[View source]
def error? : IO | Nil #

Returns this error IO.


[View source]
def exists? #

Tests if the running process exists.


[View source]
def exit_code? : Int32 | Nil #

[View source]
def exited? #

Tests if the process is started and exited.


[View source]
def input : IO #

Returns this input IO.


[View source]
def input? : IO | Nil #

Returns this input IO.


[View source]
def kill(signal : Signal | Nil = nil) #

Kills this process.


[View source]
def kill!(signal : Signal | Nil = nil) #

Kills this process.

Raises an Errno (ESRCH) exception if no process or process group can be found.


[View source]
def output : IO #

Returns this output IO.


[View source]
def output? : IO | Nil #

Returns this output IO.


[View source]
def parent : ProcessGroup #

Returns this parent group.


[View source]
def root_group : ProcessGroup #

Returns this root group.


[View source]
def source : Command #

Returns this source command.


[View source]
def started? : Bool | Nil #

Tests if the running process is started.


[View source]
def success? #

Tests if the running process is successfully terminated.

It waits for the running process to terminate.


[View source]
def terminated? #

Tests if the process is unstarted, exited or aborted.


[View source]
def unstarted? #

Tests if the running process is unstarted.


[View source]