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 +3 -0
- data/lib/red_unicorn/unicorn.rb +1 -1
- data/lib/red_unicorn/version.rb +1 -1
- metadata +5 -5
data/CHANGELOG.rdoc
CHANGED
data/lib/red_unicorn/unicorn.rb
CHANGED
@@ -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
|
|
data/lib/red_unicorn/version.rb
CHANGED
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
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-
|
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.
|
81
|
+
rubygems_version: 1.4.2
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
84
|
summary: Unicorn Process Handler
|