red_unicorn 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == v1.1.4
2
+ * Fix child pid discovery (thanks {Darrin}[http://github.com/dje])
3
+
1
4
  == v1.1.3
2
5
  * Provide warning on missing PID and continue (PID file may go missing after unicorn has been stopped)
3
6
 
@@ -163,7 +163,7 @@ module RedUnicorn
163
163
  # parent_pid:: Parent process ID
164
164
  # Returns array of child process IDs for the given parent
165
165
  def child_pids(parent_pid)
166
- process_list = %x{ps -eo pid,ppid | grep #{parent_pid}}
166
+ process_list = %x{ps -eo pid,ppid | grep #{parent_pid}}.split("\n")
167
167
  process_list.map(&:strip).find_all{|pr| pr.split.last == parent_pid.to_s }.map{|pr| pr.split.first.strip.to_i }
168
168
  end
169
169
 
@@ -13,5 +13,5 @@ module RedUnicorn
13
13
  end
14
14
  end
15
15
 
16
- VERSION = Version.new('1.1.3')
16
+ VERSION = Version.new('1.1.4')
17
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red_unicorn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 3
10
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Roberts
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-29 00:00:00 -07:00
18
+ date: 2011-11-14 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements: []
79
79
 
80
80
  rubyforge_project:
81
- rubygems_version: 1.6.2
81
+ rubygems_version: 1.4.2
82
82
  signing_key:
83
83
  specification_version: 3
84
84
  summary: Unicorn Process Handler