Sha256: 3b8ce8c313008a0c8419efd625bec8d49ec9c4baacbbd8816281354482ad67ff

Contents?: true

Size: 405 Bytes

Versions: 11

Compression:

Stored size: 405 Bytes

Contents

#######################################################################
# example_wait4.rb
#
# Simple demonstration of the Process.wait4 method. You can use the
# 'rake example_wait4' task to run this code.
#
# Modify as you see fit.
#######################################################################
require 'proc/wait3'

pid = fork{ sleep 2 }
p Time.now
Process.wait4(pid, Process::WUNTRACED)
p $?

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
proc-wait3-1.9.1 examples/example_wait4.rb
proc-wait3-1.9.0 examples/example_wait4.rb
proc-wait3-1.8.1 examples/example_wait4.rb
proc-wait3-1.8.0 examples/example_wait4.rb
proc-wait3-1.7.3 examples/example_wait4.rb
proc-wait3-1.7.2 examples/example_wait4.rb
proc-wait3-1.7.1 examples/example_wait4.rb
proc-wait3-1.7.0 examples/example_wait4.rb
proc-wait3-1.6.0 examples/example_wait4.rb
proc-wait3-1.5.6 examples/example_wait4.rb
proc-wait3-1.5.5 examples/example_wait4.rb