diff options
author | Eric Wong <e@80x24.org> | 2022-01-23 21:16:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-01-23 21:16:47 +0000 |
commit | 773bfa23614aa483e590d635d732cc523fc38f37 (patch) | |
tree | 0f6b5c5b574b2b64648027521f05e15cb9c72734 /lib/dtas/process.rb | |
parent | eab2f44b4d02ee5e468a41d50275b6506adf83d6 (diff) | |
download | dtas-773bfa23614aa483e590d635d732cc523fc38f37.tar.gz |
get rid of DTAS::Nonblock wrapper for Ruby <= 2.0
We require 2.3+, nowadays, so jettison a bunch of code.
Diffstat (limited to 'lib/dtas/process.rb')
-rw-r--r-- | lib/dtas/process.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/dtas/process.rb b/lib/dtas/process.rb index d00716f..02bf77e 100644 --- a/lib/dtas/process.rb +++ b/lib/dtas/process.rb @@ -5,7 +5,6 @@ require 'io/wait' require 'shellwords' require_relative '../dtas' require_relative 'xs' -require_relative 'nonblock' # process management helpers module DTAS::Process # :nodoc: @@ -88,12 +87,12 @@ module DTAS::Process # :nodoc: env = {} end buf = ''.b - r, w = DTAS::Nonblock.pipe + r, w = IO.pipe opts = opts.merge(out: w) r.binmode no_raise = opts.delete(:no_raise) if err_str = opts.delete(:err_str) - re, we = DTAS::Nonblock.pipe + re, we = IO.pipe re.binmode opts[:err] = we end |