summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRodrigo Fraxino Araujo2012-06-29 18:49:07 (EDT)
committer Otavio Pontes2012-06-29 21:38:20 (EDT)
commitf26acf161ea167b2c0d0d62925ca20769dda5678 (patch)
tree4dbbbfb9ca062662af0f170182d63005fd3b683c
parentf39e900a79ca0a5c833ec657f36053b7cf04ba90 (diff)
downloadorg.eclipse.linuxtools-f26acf161ea167b2c0d0d62925ca20769dda5678.zip
org.eclipse.linuxtools-f26acf161ea167b2c0d0d62925ca20769dda5678.tar.gz
org.eclipse.linuxtools-f26acf161ea167b2c0d0d62925ca20769dda5678.tar.bz2
Fix output of perf list when executed locally by redirecting its output directly.
-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 7ccc110..8162caf 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();