execute 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmd.rb +5 -5
- 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: 4900401b4c6ac3df5b9470840e13dc0fe2616ae0
|
4
|
+
data.tar.gz: 9b3b724b5ed16bafa0c131cc98373fb238ae0ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a389f1e7f09a41651ed7fe55431792e0d0367d8db9b06e4fee55131de3d58fcfb3a0b5cb6a6579ebe7f382bf5d7d7de05af67041b4f372faab0fbcb41ea5e78c
|
7
|
+
data.tar.gz: eb5a70349d5bb408bca6b58c686246397c8339aa5af48495388f03a97d0d799da05b9d73171e1b852fa1824038348cd86cb7e2d206b557c1ccad98bd6f592b59
|
data/lib/cmd.rb
CHANGED
@@ -58,17 +58,17 @@ class CMD < Hash
|
|
58
58
|
# reading input until the child process ends
|
59
59
|
Thread.new do
|
60
60
|
while wait_thr.alive? do
|
61
|
-
begin
|
61
|
+
#begin
|
62
62
|
stdin.puts $stdin.gets while wait_thr.alive?
|
63
|
-
rescue Interrupt, Errno::EINTR
|
64
|
-
|
65
|
-
end
|
63
|
+
#rescue Interrupt, Errno::EINTR
|
64
|
+
# exit(1)
|
65
|
+
#end
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
69
|
wait_thr.join
|
70
70
|
hash[:output] = output[:output].join unless(output[:output].empty?)
|
71
|
-
hash[:error] = output[:error].join unless(output[:
|
71
|
+
hash[:error] = output[:error].join unless(output[:error].empty?)
|
72
72
|
hash[:exit_code] = wait_thr.value.to_i
|
73
73
|
end
|
74
74
|
rescue Exception => e
|