Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Fraxino Araujo2012-06-29 22:49:07 +0000
committerOtavio Pontes2012-06-30 01:38:20 +0000
commitf26acf161ea167b2c0d0d62925ca20769dda5678 (patch)
tree4dbbbfb9ca062662af0f170182d63005fd3b683c /perf/org.eclipse.linuxtools.perf
parentf39e900a79ca0a5c833ec657f36053b7cf04ba90 (diff)
downloadorg.eclipse.linuxtools-f26acf161ea167b2c0d0d62925ca20769dda5678.tar.gz
org.eclipse.linuxtools-f26acf161ea167b2c0d0d62925ca20769dda5678.tar.xz
org.eclipse.linuxtools-f26acf161ea167b2c0d0d62925ca20769dda5678.zip
Fix output of perf list when executed locally by redirecting its output directly.
Diffstat (limited to 'perf/org.eclipse.linuxtools.perf')
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
index 7ccc1105ba..8162caf2ce 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
@@ -106,11 +106,7 @@ public class PerfCore {
* Old versions of Perf will send events list to stderr instead of stdout
* Checking if stdout is empty then read from stderr
*/
- BufferedReader stdoutIn = new BufferedReader(new InputStreamReader(p.getInputStream()));
- BufferedReader stderrIn = new BufferedReader(new InputStreamReader(p.getErrorStream()));
-
- while (!stdoutIn.ready() && !stderrIn.ready()) continue;
- input = stdoutIn.ready() ? stdoutIn : stderrIn;
+ input = new BufferedReader(new InputStreamReader(p.getInputStream()));
} catch( IOException e ) {
e.printStackTrace();

Back to the top