From 4e5156621e3557af98d3d91aff243278e1d8dbef Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 12 Dec 2020 11:44:25 +0900 Subject: [PATCH] [DOC] Process::Status.wait return nil if no child processes [ci skip] --- process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/process.c b/process.c index 0e3baecc33..a8e0931af2 100644 --- a/process.c +++ b/process.c @@ -1367,8 +1367,8 @@ rb_process_status_wait(rb_pid_t pid, int flags) * haven't been reported). Not all flags are available on all * platforms, but a flag value of zero will work on all platforms. * - * Calling this method raises a SystemCallError if there are no child - * processes. Not available on all platforms. + * Returns +nil+ if there are no child processes. + * Not available on all platforms. * * May invoke the scheduler hook _process_wait_. * @@ -1383,7 +1383,7 @@ rb_process_status_wait(rb_pid_t pid, int flags) * Process::Status.wait(pid, 0) #=> pid 27440 exit 99 * Time.now #=> 2008-03-08 19:56:19 +0900 * - * EXPERIMENTAL FEATURE + * This is an EXPERIMENTAL FEATURE. */ VALUE