Allow dtrace without pty, i.e., with miniruby

This commit is contained in:
Nobuyoshi Nakada 2019-06-30 21:15:56 +09:00
parent b89f6ac843
commit 62e66b8e18
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -30,7 +30,6 @@ if ok
begin begin
require 'pty' require 'pty'
rescue LoadError rescue LoadError
ok = false
end end
end end
end end
@ -78,7 +77,7 @@ module DTrace
Process.wait(pid) Process.wait(pid)
end end
lines lines
end end if defined?(PTY)
end end
# only handles simple cases, use a Hash for d_program # only handles simple cases, use a Hash for d_program