Project

General

Profile

Bug #5962

Error in Process.{wait,wait2} rdoc

Added by jheiss (Jason Heiss) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
Revision: 34422
Backport:
[ruby-core:42327]

Description

The rdoc for Process.{wait,wait2} claim they will raise "SystemError". That exception doesn't exist. In reality they seem to raise Errno::ECHILD:

Process.wait
Errno::ECHILD: No child processes

Although perhaps the intention was to document that they raise SystemCallError (ECHILD's superclass)? I'm including patches for both, feel free to pick either one.

Updated by drbrain (Eric Hodel) over 8 years ago

  • Category set to doc
  • Assignee set to drbrain (Eric Hodel)
#2

Updated by drbrain (Eric Hodel) over 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r34587.
Jason, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • process.c (proc_wait): Change typo "SystemError" to "SystemCallError". [ruby-trunk - Bug #5962]
  • process.c (proc_wait2): ditto

Also available in: Atom PDF