henry-container 0.1.52 → 0.1.53

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f66dab395d2dab8ba80055331ab0bf67f2a0652
4
- data.tar.gz: aadb6d1338ddf6728b2fc752bb9b9e989b06b336
3
+ metadata.gz: a3500a9632125c1d420d3ac36735f51674a2c4b2
4
+ data.tar.gz: d17d3427b69354adca379183e9dcf9d51edb79db
5
5
  SHA512:
6
- metadata.gz: f2f6ed65900eee29d5a2b03e65cc0c1e7fb09b94663858d72f842d81b034a61280b4df4cb50b351f41f8d0185e74a4bc38b003d3243d98ca217d18d2d49fd541
7
- data.tar.gz: 29f2482761ff07489a1fb6d522e237f0eb5a11601458d37563138f54200fe52ed89b2b1f6821be38b8ac40fb75cf57d4b23eee39abd92f0e274a0304d80c979d
6
+ metadata.gz: bd434de68e889021ce0f835de2d432bec9a45ed0a6a2b64adaa7ebe342e2ad7f9302490e983caad281b2e98b5a6a0dd418b428691fcbe986211f84b3db7a30f6
7
+ data.tar.gz: fc93ef037d5f374dc24d936c1f5d9cfbd329ee5b12d101d7ff1695d084d0397c42802c77b00c6f6589c151b1227b78f1175e1d8f87f24220fd2c3afc220b7825
@@ -103,27 +103,27 @@ module Henry
103
103
  ensure
104
104
  self.kill_children(Process.pid)
105
105
  end
106
+ end
106
107
 
107
- # Kills children processes recursively.
108
- #
109
- # @params [Integer] pid the pid of the process to be killed.
110
- def kill_children(pid)
111
- begin
112
- children_pids = `ps o pid= --ppid #{pid}`.scan(/\d+/).collect(&:to_i)
108
+ # Kills children processes recursively.
109
+ #
110
+ # @params [Integer] pid the pid of the process to be killed.
111
+ def kill_children(pid)
112
+ begin
113
+ children_pids = `ps o pid= --ppid #{pid}`.scan(/\d+/).collect(&:to_i)
113
114
 
114
- return false if pids.count == 1
115
+ return false if pids.count == 1
115
116
 
116
- children_pids.each do |child_pid|
117
- begin
118
- Process.kill('KILL', child_pid)
117
+ children_pids.each do |child_pid|
118
+ begin
119
+ Process.kill('KILL', child_pid)
119
120
 
120
- self.kill_children(child_pid)
121
- rescue Errno::ESRCH
122
- end
121
+ self.kill_children(child_pid)
122
+ rescue Errno::ESRCH
123
123
  end
124
- rescue Errno::ENOENT
125
- warn 'Can not cleanup this process children'
126
- end
124
+ t g end
125
+ rescue Errno::ENOENT
126
+ warn 'Can not cleanup this process children'
127
127
  end
128
128
  end
129
129
 
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = ENV['gem_version'] || '0.1.52'
6
+ VERSION = ENV['gem_version'] || '0.1.53'
7
7
 
8
8
  end
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.52
4
+ version: 0.1.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Decurnex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-02 00:00:00.000000000 Z
11
+ date: 2013-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake