perfectqueue 0.8.7 → 0.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ == 2012-07-26 version 0.8.8
3
+
4
+ * Use PWR instead of EMT signal which is not supported by ruby
5
+ * Fixed processor_id routine
6
+
7
+
2
8
  == 2012-07-26 version 0.8.7
3
9
 
4
10
  * Worker process changes process name ($0)
@@ -20,8 +20,8 @@ module PerfectQueue
20
20
  module Multiprocess
21
21
 
22
22
  class ChildProcess < ThreadProcessor
23
- def self.run(runner, config, wpipe)
24
- new(runner, config, wpipe).run
23
+ def self.run(runner, processor_id, config, wpipe)
24
+ new(runner, processor_id, config, wpipe).run
25
25
  end
26
26
 
27
27
  def initialize(runner, processor_id, config, wpipe)
@@ -126,8 +126,6 @@ module PerfectQueue
126
126
 
127
127
  def fork_child
128
128
  # set process name
129
- $0 = "perfectqueue:#{@runner} #{@processor_id}"
130
-
131
129
  @runner.before_fork if @runner.respond_to?(:before_fork) # TODO exception handling
132
130
 
133
131
  INTER_FORK_LOCK.lock
@@ -145,10 +143,12 @@ module PerfectQueue
145
143
  # pass-through STDERR
146
144
  rpipe.close
147
145
 
146
+ $0 = "perfectqueue:#{@runner} #{@processor_id}"
147
+
148
148
  @runner.after_fork if @runner.respond_to?(:after_fork)
149
149
 
150
150
  begin
151
- ChildProcess.run(@runner, @config, wpipe)
151
+ ChildProcess.run(@runner, @processor_id, @config, wpipe)
152
152
  ensure
153
153
  @runner.after_child_end if @runner.respond_to?(:after_child_end) # TODO exception handling
154
154
  end
@@ -1,3 +1,3 @@
1
1
  module PerfectQueue
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
@@ -136,7 +136,7 @@ module PerfectQueue
136
136
  replace(false)
137
137
  end
138
138
 
139
- sig.trap :EMT do
139
+ sig.trap :PWR do
140
140
  replace(true)
141
141
  end
142
142
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfectqueue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: