[DOC] Process::Status.wait return nil if no child processes [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-12-12 11:44:25 +09:00
Родитель 70a311fdeb
Коммит 4e5156621e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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 * haven't been reported). Not all flags are available on all
* platforms, but a flag value of zero will work on all platforms. * platforms, but a flag value of zero will work on all platforms.
* *
* Calling this method raises a SystemCallError if there are no child * Returns +nil+ if there are no child processes.
* processes. Not available on all platforms. * Not available on all platforms.
* *
* May invoke the scheduler hook _process_wait_. * 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 * Process::Status.wait(pid, 0) #=> pid 27440 exit 99
* Time.now #=> 2008-03-08 19:56:19 +0900 * Time.now #=> 2008-03-08 19:56:19 +0900
* *
* EXPERIMENTAL FEATURE * This is an EXPERIMENTAL FEATURE.
*/ */
VALUE VALUE