Commit a4bd7a4f authored by Adam Roben's avatar Adam Roben

Fix `rbtrace --exec`

We set RUBYOPT using a path relative to the current file when execing a child
process. The file that contains this logic was moved in
d502dde9 but the relative path wasn't updated
at that time.
parent ac23a09d
......@@ -322,7 +322,7 @@ EOS
if opts[:exec_given]
tracee = fork{
Process.setsid
ENV['RUBYOPT'] = "-r#{File.expand_path('../../lib/rbtrace',__FILE__)}"
ENV['RUBYOPT'] = "-r#{File.expand_path('../../rbtrace',__FILE__)}"
exec(*opts[:exec])
}
STDERR.puts "*** spawned child #{tracee}: #{opts[:exec].inspect[1..-2]}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment