spawner 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +5 -0
  2. data/lib/spawner.rb +2 -1
  3. metadata +3 -3
@@ -1,3 +1,8 @@
1
+ == 1.0.2 / 2009-05-13
2
+
3
+ * 1 bug fix
4
+ * Resceing a SystemCallError if the child process has already died
5
+
1
6
  == 1.0.1 / 2008-09-15
2
7
 
3
8
  * 1 minor enhancement
@@ -19,7 +19,7 @@ begin require 'fastthread'; rescue LoadError; end
19
19
  #
20
20
  class Spawner
21
21
 
22
- VERSION = '1.0.1'
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.1
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: 2008-09-15 00:00:00 -06:00
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.2.0
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