Commit 11a40cb3 authored by Rémy Oudompheng's avatar Rémy Oudompheng

misc/pprof: don't look for browser in current directory.

Taken from upstream pprof.

Fixes #4564.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/6952045
parent 64eb7749
...@@ -726,12 +726,10 @@ sub RunWeb { ...@@ -726,12 +726,10 @@ sub RunWeb {
"firefox", "firefox",
); );
foreach my $b (@alt) { foreach my $b (@alt) {
if (-f $b) {
if (system($b, $fname) == 0) { if (system($b, $fname) == 0) {
return; return;
} }
} }
}
print STDERR "Could not load web browser.\n"; print STDERR "Could not load web browser.\n";
} }
......
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