aboutsummaryrefslogtreecommitdiffstats
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r--ext/pty/pty.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 9026dafee6..e212b49434 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -606,6 +606,15 @@ raise_from_check(pid_t pid, int status)
rb_exc_raise(exc);
}
+/*
+ * call-seq:
+ * PTY.check(pid[, raise=false]) => Process::Status or nil
+ *
+ * checks the status of the child process specified by _pid_, and
+ * returns +nil+ if the process is still alive and active. Otherwise,
+ * returns +Process::Status+ about the process if _raise_ is false, or
+ * +PTY::ChildExited+ exception is raised.
+ */
static VALUE
pty_check(int argc, VALUE *argv, VALUE self)
{