PTY.check(pid, raise = false) => Process::Status or nil
PTY.check(pid, true) => nil or raises PTY::ChildExited
PTY.check(pid, true) => nil or raises PTY::ChildExited
Class Public methods
Checks the status of the child process specified by pid
.
Returns nil
if the process is still alive.
If the process is not alive, and raise
was true, a PTY::ChildExited exception will be raised.
Otherwise it will return a Process::Status instance.
-
pid
-
The process id of the process to check
-
raise
-
If
true
and the process identified bypid
is no longer alive a PTY::ChildExited is raised.
Please login to continue.