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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue