mssh 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mcmd.rb +2 -6
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: def3d769113d7c4de391bad71e4d10b24b41b43e
|
4
|
+
data.tar.gz: 5dd69c4325303dee3f3f4e6e9c2d6afb7fc60b42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbd0d8accf9eaff9ef9b708a4bbe50badbad5213767ccca622836bfa992a4dad232c0ee23d3ee235375f6a1f8b3ea542fce1e5fea10e89cc67e1499d6029cd1d
|
7
|
+
data.tar.gz: 0d7633903eb81cb4ab29cc534b4cb83319d33b368e3c8684db5be9fb7b42aa9f24d262a91c745f40f609133dba0b71aadc06d73604b5c01648cd7141c1ad70de
|
data/lib/mcmd.rb
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
|
3
|
-
require 'pp'
|
4
|
-
require 'rubygems'
|
5
|
-
require 'io/poll'
|
6
|
-
|
7
3
|
class MultipleCmd
|
8
4
|
|
9
5
|
attr_accessor :global_timeout, :maxflight, :perchild_timeout, :commands
|
@@ -136,7 +132,7 @@ class MultipleCmd
|
|
136
132
|
write_fds = subproc_by_pid.values.select {|x| not x.stdin_fd.nil? and not x.terminated}.map {|x| x.stdin_fd}
|
137
133
|
read_fds = subproc_by_pid.values.select {|x| not x.terminated}.map {|x| [x.stdout_fd, x.stderr_fd].select {|x| not x.nil? } }.flatten
|
138
134
|
|
139
|
-
read_fds, write_fds, err_fds = IO.
|
135
|
+
read_fds, write_fds, err_fds = IO.select(read_fds, write_fds, nil, self.poll_period)
|
140
136
|
|
141
137
|
self.process_read_fds(read_fds) unless read_fds.nil?
|
142
138
|
self.process_write_fds(write_fds) unless write_fds.nil?
|
@@ -244,7 +240,7 @@ class MultipleCmd
|
|
244
240
|
# We may have waited on a child before reading all its output. Collect those missing bits. No blocking.
|
245
241
|
if not just_reaped.empty?
|
246
242
|
read_fds = just_reaped.select {|x| not x.terminated}.map {|x| [x.stdout_fd, x.stderr_fd].select {|x| not x.nil? } }.flatten
|
247
|
-
read_fds, write_fds, err_fds = IO.
|
243
|
+
read_fds, write_fds, err_fds = IO.select(read_fds, nil, nil, 0)
|
248
244
|
self.process_read_fds(read_fds) unless read_fds.nil?
|
249
245
|
end
|
250
246
|
just_reaped.each do |p|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: io-poll
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rspec
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
74
|
version: 1.3.6
|
89
75
|
requirements: []
|
90
76
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.6.14
|
92
78
|
signing_key:
|
93
79
|
specification_version: 4
|
94
80
|
summary: Parallel ssh and command execution.
|