Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions truffle/src/main/ruby/core/process.rb
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ def self.setproctitle_linux_from_proc_maps(title)
main_index = command.index("\x00org.jruby")
raise "Did not find the main class in args" unless main_index
needle = command[0...main_index]
i = haystack.index("\x00\x00#{needle}")
i = haystack.index("\x00#{needle}")
unless i
puts
p needle
@@ -170,7 +170,7 @@ def self.setproctitle_linux_from_proc_maps(title)
puts
raise "argv[0] not found"
end
i += 2
i += 1

@_argv0_max_length = needle.bytesize
base + i

0 comments on commit 6ccbbcd

Please sign in to comment.