shexecutor 0.0.16 → 0.0.17

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: f5a90086a0b0551fc5c8296e15e8261a6c05103e
4
- data.tar.gz: b471206bf6fe04e173ca72e5690eace7e922233f
3
+ metadata.gz: 48b82b86ef73726ecd15e93f3536566b6fb1e31c
4
+ data.tar.gz: a0d0a1a6e6949476f55c3f8647f7ff22eeef14fb
5
5
  SHA512:
6
- metadata.gz: e7eaf4861a28bac3294e80ab2745261693f3cadba1f84b07ed78337c4c325f728ea0c94196d99725b857c3d9debbdc31fe5c89cc569bb798642863331c05fb73
7
- data.tar.gz: e62998f6d86fb8ae0200cf880b7c4dc29e6a3dc4ee62dc4147e4cae09709e1b68f0c2a318dd268ea4b290e42b7a803e1f042107c94e491358afcd39696ed7489
6
+ metadata.gz: 5ef689ba57ee3e5559d321a643d4a3ff6938ef8ceeb8feef02f488a938168a43885d60c9fe68904b7b8c19f643776a6435af84a6dcbd77984e129cbf02e9a24d
7
+ data.tar.gz: 0a5e66484187ee989b13184d618bc9f9192fdb8a084a82002338e92bc542e5dd7b0983d1c987ca53d01f737b1dd85b788f4cafc4459dad4a555f017e9b7fb1de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shexecutor (0.0.15)
4
+ shexecutor (0.0.17)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -99,7 +99,7 @@ puts "For more see: #{iut.result.methods}"
99
99
  ```
100
100
  iut = SHExecutor::Executor.new({:timeout => 1, :wait_for_completion => true, :application_path => "/bin/sleep", :params => ["2"]})
101
101
  result = iut.execute
102
- # Timeout::Error gets raised. The spawned process continues and needs to be managed separately if required.
102
+ # Timeout::Error gets raised. The spawned process is killed with TERM, and then with signal 9 if it does not close in timeout_sig_kill_retry ms
103
103
  ```
104
104
 
105
105
  ###Non-blocking
@@ -1,3 +1,3 @@
1
1
  module SHExecutor
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
data/lib/shexecutor.rb CHANGED
@@ -164,6 +164,7 @@ module SHExecutor
164
164
  IO.copy_stream(stdout, data_out)
165
165
  rescue Exception => ex
166
166
  raise TimeoutError.new("execution expired") if @timeout_error
167
+ raise ex
167
168
  end
168
169
  end
169
170
  t2 = Thread.new do
@@ -171,6 +172,7 @@ module SHExecutor
171
172
  IO.copy_stream(stderr, data_err)
172
173
  rescue Exception => ex
173
174
  raise TimeoutError.new("execution expired") if @timeout_error
175
+ raise ex
174
176
  end
175
177
  end
176
178
  m = Mutex.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shexecutor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan