]> Cypherpunks repositories - gostls13.git/commitdiff
misc/pprof: don't look for browser in current directory.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 21 Dec 2012 19:40:44 +0000 (20:40 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 21 Dec 2012 19:40:44 +0000 (20:40 +0100)
Taken from upstream pprof.

Fixes #4564.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/6952045

misc/pprof

index 71ecd44b10f72accfc4c07efadd3887cb633b9dc..7c379acbe89168ec5748bd6de7560b0c6485a4cd 100755 (executable)
@@ -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;
     }
   }