henry-container 0.1.53 → 0.1.54
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/henry/container.rb +2 -2
- data/lib/henry/container/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e796d87a8aa1137e548d11d52c3543876ff84ddd
|
4
|
+
data.tar.gz: 1bc7a6a5ae7a173ef6dd64e544486321b00ebee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cad7b34b433bf2ba2abace1cc6046fc010fada7208ab67f1be92f5ae1e20253554e93a5cb13c228510c73014501037e5a4b577610024cc3d4bf1990ab9c6f2d
|
7
|
+
data.tar.gz: 3bed28d4123863a9ace7205ec59f5a0516e3806fca41812f23a3e09b28953851e5fe0bb56300ec376ce6654c79c79909d61389ea32473f6fb43c64a7a4597ea5
|
data/lib/henry/container.rb
CHANGED
@@ -112,7 +112,7 @@ module Henry
|
|
112
112
|
begin
|
113
113
|
children_pids = `ps o pid= --ppid #{pid}`.scan(/\d+/).collect(&:to_i)
|
114
114
|
|
115
|
-
return false if
|
115
|
+
return false if children_pids.count == 1
|
116
116
|
|
117
117
|
children_pids.each do |child_pid|
|
118
118
|
begin
|
@@ -121,7 +121,7 @@ module Henry
|
|
121
121
|
self.kill_children(child_pid)
|
122
122
|
rescue Errno::ESRCH
|
123
123
|
end
|
124
|
-
|
124
|
+
end
|
125
125
|
rescue Errno::ENOENT
|
126
126
|
warn 'Can not cleanup this process children'
|
127
127
|
end
|