unicorn_horn 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,20 +1,5 @@
1
- Copyright (c) 2009 Citizen Logistics, Inc.
1
+ This software is made available under the GPL v2, like Unicorn.
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3
+ Copyright (c) Zed A. Shaw
4
+ Copyright (c) Eric Wong
5
+ Copyright (c) Joe Edelman
@@ -4,4 +4,8 @@ An extraction of the process monitoring logic from Unicorn
4
4
 
5
5
  == Copyright
6
6
 
7
- Copyright (c) 2010 Citizen Logistics, Inc. See LICENSE for details.
7
+ This software is made available under the GPL v2, like Unicorn.
8
+
9
+ Copyright (c) Zed A. Shaw
10
+ Copyright (c) Eric Wong
11
+ Copyright (c) Joe Edelman
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -9,13 +9,13 @@ module UnicornHorn
9
9
  def start
10
10
  register :QUIT, :INT, :TERM, :CHLD, :HUP
11
11
  AFTER_FORK << proc{ @workers.clear; forget }
12
- @workers.each(&:launch!)
12
+ @workers.each{ |w| w.launch! }
13
13
 
14
14
  ploop do |signal|
15
15
  reap
16
16
  case signal
17
17
  when nil
18
- @workers.each(&:kill_if_idle)
18
+ @workers.each{ |w| w.kill_if_idle }
19
19
  @workers.each{ |w| w.wpid or w.launch! }
20
20
  psleep 1
21
21
  when :CHLD; next
@@ -18,7 +18,7 @@ module UnicornHorn
18
18
 
19
19
  # the prep work
20
20
  Utils.proc_name "worker[#{name}]"
21
- AFTER_FORK.each(&:call)
21
+ AFTER_FORK.each{ |x| x.call }
22
22
  @tmp.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
23
23
  [:TERM, :INT].each { |sig| trap(sig) { exit!(0) } }
24
24
  alive = @tmp
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joe Edelman
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-15 00:00:00 -07:00
17
+ date: 2010-10-07 00:00:00 -07:00
18
18
  default_executable: hornrunner
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency