spawner 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/spawner.rb +2 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/spawner.rb
CHANGED
@@ -19,7 +19,7 @@ begin require 'fastthread'; rescue LoadError; end
|
|
19
19
|
#
|
20
20
|
class Spawner
|
21
21
|
|
22
|
-
VERSION = '1.0.
|
22
|
+
VERSION = '1.0.2'
|
23
23
|
|
24
24
|
@dev_null = test(?e, "/dev/null") ? "/dev/null" : "NUL:"
|
25
25
|
|
@@ -268,6 +268,7 @@ class Spawner
|
|
268
268
|
|
269
269
|
@cids.sync {@cids << cid} if cid > 0
|
270
270
|
Process.wait cid
|
271
|
+
rescue SystemCallError # if the child has already died
|
271
272
|
rescue Exception => err
|
272
273
|
child_err = Marshal.load(line) rescue nil
|
273
274
|
err = child_err unless child_err.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spawner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-05-14 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements: []
|
65
65
|
|
66
66
|
rubyforge_project: codeforpeople
|
67
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.3.1
|
68
68
|
signing_key:
|
69
69
|
specification_version: 2
|
70
70
|
summary: Spawn multiple child processes from Ruby and re-spawn those processes if they die
|