rbbt-util 5.23.10 → 5.23.11

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: 472836abad9da3e74360c01bf0b6889d5d180274
4
- data.tar.gz: 997deade2fa19ec1060789a4d06d1d20e484d6c2
3
+ metadata.gz: aa7c357c654a8b1863b86fa0bf3d6f8b8051ec35
4
+ data.tar.gz: 14da2501042aefc371c57f23eaf73932ae33b536
5
5
  SHA512:
6
- metadata.gz: cc65674762a492eff698fa64f646a0f9bf9bfa148e96bc5910b03f4fe904e0cc17b2c9d6f3c78739aa3e78e8c5f0140c83719b601843311972d6e8aac97f9763
7
- data.tar.gz: 4ec976bc296528a9d824ee0c763b63bf33a1a401748ec40518d6705084cf5191c8e7c9e385e0ef49fd87b9b5acf230b67c556bd3206b563f63812acabb8c09ba
6
+ metadata.gz: af5b5fc1faef2d2882f0bf853b1da770a3d9dfd7dc02104d2099431f04c02b0367823ffb7a6756a6b243fd39df639c67f4bf4b01677e5e73e0b93b5274b80cb3
7
+ data.tar.gz: f52c250423ebf350a3a39e326d143ecc0854b0be0e0b770ab4d376d1703f7639059bd2892b8c234b712faf72ec74612af929829b33ad26c3909e11dc34d7f119
@@ -116,7 +116,7 @@ module CMD
116
116
  in_content.join if in_content.respond_to? :join
117
117
  end
118
118
  rescue
119
- Log.exception $!
119
+ Log.error "Error in CMD [#{pid}] #{cmd}: #{$!.message}"
120
120
  raise $!
121
121
  # begin
122
122
  # Process.kill "INT", pid
@@ -177,6 +177,8 @@ module ConcurrentStream
177
177
  AbortedStream.setup(self, exception)
178
178
  @aborted = true
179
179
  begin
180
+ close unless closed?
181
+
180
182
  @abort_callback.call exception if @abort_callback
181
183
 
182
184
  abort_threads(exception)
@@ -186,8 +188,6 @@ module ConcurrentStream
186
188
  @abort_callback = nil
187
189
 
188
190
  @pair.abort exception if @pair
189
-
190
- close unless closed?
191
191
  ensure
192
192
  if lockfile and lockfile.locked?
193
193
  lockfile.unlock
@@ -228,7 +228,7 @@ module ConcurrentStream
228
228
 
229
229
  self.abort
230
230
  ensure
231
- Kernel.raise $!
231
+ Kernel.raise exception
232
232
  end
233
233
  end
234
234
 
@@ -104,7 +104,7 @@ module Misc
104
104
  rescue Exception
105
105
  Log.medium "Exception in open_pipe: #{$!.message}"
106
106
  Log.exception $!
107
- sin.close
107
+ sin.raise($!) if sin.respond_to? :raise
108
108
  raise $!
109
109
  end
110
110
  end
@@ -464,10 +464,10 @@ module Misc
464
464
  begin
465
465
  Misc.consume_stream(sorted, false, sin)
466
466
  rescue
467
+ Log.exception $!
467
468
  begin
468
- Log.exception $!
469
- sorted.abort
470
- stream.abort
469
+ sorted.raise($!) if sorted.respond_to? :raise
470
+ stream.raise($!) if stream.respond_to? :raise
471
471
  ensure
472
472
  raise $!
473
473
  end
@@ -659,7 +659,10 @@ class Step
659
659
 
660
660
  self
661
661
  ensure
662
- set_info :joined, true
662
+ begin
663
+ set_info :joined, true
664
+ rescue
665
+ end if File.exists?(info_file) && File.writable?(info_file)
663
666
  @result = nil
664
667
  end
665
668
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.23.10
4
+ version: 5.23.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez