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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/shexecutor/version.rb +1 -1
- data/lib/shexecutor.rb +2 -0
- 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: 48b82b86ef73726ecd15e93f3536566b6fb1e31c
|
4
|
+
data.tar.gz: a0d0a1a6e6949476f55c3f8647f7ff22eeef14fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ef689ba57ee3e5559d321a643d4a3ff6938ef8ceeb8feef02f488a938168a43885d60c9fe68904b7b8c19f643776a6435af84a6dcbd77984e129cbf02e9a24d
|
7
|
+
data.tar.gz: 0a5e66484187ee989b13184d618bc9f9192fdb8a084a82002338e92bc542e5dd7b0983d1c987ca53d01f737b1dd85b788f4cafc4459dad4a555f017e9b7fb1de
|
data/Gemfile.lock
CHANGED
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
|
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
|
data/lib/shexecutor/version.rb
CHANGED
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
|