execute 0.1.23 → 0.1.24
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 +12 -12
- 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: b28113ced8b010d381572d185379b3bf300d7007
|
4
|
+
data.tar.gz: 0203575907f47275bc2d26627ed8c13b41f6120b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6c48031159ece03e145a8cb034159f917a66b4d7c2577551f99ae78bf8dbd2231ba0e79619e552c9c329072f0511127f5103cc51dd3783291509e36cde40c37
|
7
|
+
data.tar.gz: 459789548b0776501b03faa5845697231059e45825165391c5f10f160f5cb74f5a5a74b45c74a523d8dfea520fc1aedffb8ce2670dcfb6c8f578a2791bbac57e
|
data/lib/cmd.rb
CHANGED
@@ -56,18 +56,18 @@ class CMD < Hash
|
|
56
56
|
#
|
57
57
|
# while thread.alive? means that we keep on
|
58
58
|
# reading input until the child process ends
|
59
|
-
Thread.new do
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
end
|
59
|
+
#Thread.new do
|
60
|
+
# while wait_thr.alive? do
|
61
|
+
# #begin
|
62
|
+
# puts "HERE"
|
63
|
+
# c = STDIN.gets
|
64
|
+
# puts "char: #{c}"
|
65
|
+
# stdin.puts c
|
66
|
+
# #rescue Interrupt, Errno::EINTR
|
67
|
+
# # exit(1)
|
68
|
+
# #end
|
69
|
+
# end
|
70
|
+
#end
|
71
71
|
|
72
72
|
wait_thr.join
|
73
73
|
hash[:output] = output[:output].join unless(output[:output].empty?)
|