1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:50:21 -07:00

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
This commit is contained in:
Rémy Oudompheng 2012-12-21 20:40:44 +01:00
parent 64eb7749bc
commit 11a40cb34d

View File

@ -726,10 +726,8 @@ sub RunWeb {
"firefox",
);
foreach my $b (@alt) {
if (-f $b) {
if (system($b, $fname) == 0) {
return;
}
if (system($b, $fname) == 0) {
return;
}
}