ztk 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ztk/parallel.rb +6 -1
- data/lib/ztk/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: 1fc2b6e22274779b14b64668b16d548dfd2530cc
|
4
|
+
data.tar.gz: fbee3964e04aae36f5be993888d758a77bfe7ad7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23d33caad8e495cf3f04da0a235ff3057d7bf24f53acd4ba5594c2ef6c662de260ffbaceeb997a18cb71fce928cc03fd029c58cd4118ea74a75b1ae1ebeef9a7
|
7
|
+
data.tar.gz: db1bd16f33104f02cc4c5133cf046784954d42587f8c6d7e5056a0fe26cb09c019dfa52052b69198a6378998af75e19160a515bfeee713a971183110b2b22a49
|
data/lib/ztk/parallel.rb
CHANGED
@@ -211,7 +211,12 @@ module ZTK
|
|
211
211
|
pid, status = (Process.wait2(-1, Process::WUNTRACED) rescue nil)
|
212
212
|
|
213
213
|
if !pid.nil? && !status.nil? && !(fork = @forks.select{ |f| f[:pid] == pid }.first).nil?
|
214
|
-
data =
|
214
|
+
data = nil
|
215
|
+
begin
|
216
|
+
data = Marshal.load(Zlib::Inflate.inflate(Base64.decode64(fork[:reader].read).to_s))
|
217
|
+
rescue Zlib::BufError
|
218
|
+
config.ui.logger.fatal { "Encountered Zlib::BufError when reading child pipe." }
|
219
|
+
end
|
215
220
|
config.ui.logger.debug { "read(#{data.inspect})" }
|
216
221
|
|
217
222
|
data = process_data(data)
|
data/lib/ztk/version.rb
CHANGED