in-parallel 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/in_parallel/version.rb +1 -1
- data/lib/in_parallel.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: fde05adab05cca1454b0c4f9187cddc062f32fe9
|
4
|
+
data.tar.gz: 12ae2280dcfd30cc7875a863c05abeff93e9eade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe93efe91c47632f57062d29f903d88b723a15f4333cf7bcdd7c8802ff7712481c37a52a70f92f736ac10662e2bee393a5e52ca6f9003603babb7c9273a026d5
|
7
|
+
data.tar.gz: 37bcdff90122259424d7e2523f9a33cf2bbe56755bfd277802a2a5b386d73aef850b2c07422b5d4286c165bed8208015289db4f51ba4a6a32b534ab425f51203
|
data/in_parallel/version.rb
CHANGED
data/lib/in_parallel.rb
CHANGED
@@ -171,13 +171,13 @@ module InParallel
|
|
171
171
|
ret_val = nil
|
172
172
|
# Communicate the return value of the method or block
|
173
173
|
read_result, write_result = IO.pipe
|
174
|
+
Dir.mkdir('tmp') unless Dir.exists? 'tmp'
|
174
175
|
pid = fork do
|
175
176
|
exit_status = 0
|
176
177
|
trap(:INT) do
|
177
178
|
puts("Warning: Interrupt received in child process; exiting #{Process.pid}")
|
178
179
|
return
|
179
180
|
end
|
180
|
-
Dir.mkdir('tmp') unless Dir.exists? 'tmp'
|
181
181
|
write_file = File.new("tmp/parallel_process_#{Process.pid}", 'w')
|
182
182
|
|
183
183
|
# IO buffer is 64kb, which isn't much... if debug logging is turned on,
|