check

PTY.check(pid, raise = false) => Process::Status or nil
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 by pid is no longer alive a PTY::ChildExited is raised.

doc_ruby_on_rails
2015-04-29 20:08:16
Comments
Leave a Comment

Please login to continue.