mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Allow dtrace without pty, i.e., with miniruby
This commit is contained in:
parent
b89f6ac843
commit
62e66b8e18
1 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,6 @@ if ok
|
|||
begin
|
||||
require 'pty'
|
||||
rescue LoadError
|
||||
ok = false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -78,7 +77,7 @@ module DTrace
|
|||
Process.wait(pid)
|
||||
end
|
||||
lines
|
||||
end
|
||||
end if defined?(PTY)
|
||||
end
|
||||
|
||||
# only handles simple cases, use a Hash for d_program
|
||||
|
|
Loading…
Add table
Reference in a new issue