Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Adds the wait3, wait4, waitid, pause, sigsend, and getrusage methods to the Ruby Process module

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc Documentation updates for 1.7.0. April 06, 2014
Octocat-spinner-32 examples Initial conversion to git. January 06, 2010
Octocat-spinner-32 ext Version bump. April 24, 2014
Octocat-spinner-32 test Version bump. April 24, 2014
Octocat-spinner-32 CHANGES Added changes for 1.7.1. April 24, 2014
Octocat-spinner-32 MANIFEST Initial conversion to git. January 06, 2010
Octocat-spinner-32 README Updated README description. September 21, 2011
Octocat-spinner-32 Rakefile Updated gem:create task. April 04, 2014
Octocat-spinner-32 proc-wait3.gemspec Version bump. April 24, 2014
README
= Description
  Adds the wait3, wait4, waitid, pause, sigsend, and getrusage methods to
  the Process module.

= Installation
  gem install proc-wait3

= Synopsis
  require 'proc/wait3'

  pid = fork{
    sleep 1
    exit 2
  }

  puts Time.now.to_s
  Process.wait3
  puts $?.exitstatus # => 2

= Tested Platforms
  * Solaris
  * Linux
  * FreeBSD
  * OS X

= Warnings
  Linux users who compile with gcc -Wall will notice a few warnings. These
  are harmless (and unavoidable atm).

= Integration with Ruby's process.c

  I considered simply providing a patch to the core process.c file, but I
  decided against it for two reasons.  First, I wanted to get something
  out more quickly rather than waiting for approval from the core developers
  who, based on an earlier post, seem somewhat gun-shy about integrating support
  for wait3() and wait4() based, I think, on portability concerns.

  Second, and more importantly, I don't like the cProcStatus class.  The
  extra inspection code seems like an awful lot of work for very little gain.
  The overloaded methods are also overkill, and do nothing but save me the
  trouble of typing the word "status", since all they're for is comparing or
  operating on the status attribute.

= Additional Documentation

  Please see the doc/wait3.txt file for detailed documentation.
Something went wrong with that request. Please try again.