Project

General

Profile

Actions

Bug #5962

closed

Error in Process.{wait,wait2} rdoc

Added by jheiss (Jason Heiss) about 12 years ago. Updated about 12 years ago.

Status:
Closed
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) about 12 years ago

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

Updated by drbrain (Eric Hodel) about 12 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
Actions

Also available in: Atom PDF

Like0
Like0Like0