execute 0.1.21 → 0.1.22
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 +7 -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: b05775fe15bbb404fe9d7008cfa90ff4a118cc65
|
4
|
+
data.tar.gz: a2e63d76e865a17b3ea6e243f6976401ec2384ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42cee1866a72fda8d7e84c32ecd543e3b083f4773601e678e9145d664c79735bb02689e050ef08e324c77c828137bbaca18de150ed8da71713f7cb8a9a5c77d5
|
7
|
+
data.tar.gz: b952f499601aa93fe1029e391ca57d943b3c3b0d4a085a3e5c08f19330e529372890fd3a0362c9032aec107905c030261ec0b76397e6ebd579bf9798d75caaf8
|
data/lib/cmd.rb
CHANGED
@@ -58,11 +58,13 @@ 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
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
61
|
+
begin
|
62
|
+
c = $stdin.gets
|
63
|
+
puts "char: #{c}"
|
64
|
+
stdin.puts c
|
65
|
+
rescue Interrupt, Errno::EINTR
|
66
|
+
exit(1)
|
67
|
+
end
|
66
68
|
end
|
67
69
|
end
|
68
70
|
|