diff options
author | Rodrigo Fraxino Araujo | 2012-06-29 22:49:07 +0000 |
---|---|---|
committer | Otavio Pontes | 2012-06-30 01:38:20 +0000 |
commit | f26acf161ea167b2c0d0d62925ca20769dda5678 (patch) | |
tree | 4dbbbfb9ca062662af0f170182d63005fd3b683c | |
parent | f39e900a79ca0a5c833ec657f36053b7cf04ba90 (diff) | |
download | org.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.
-rw-r--r-- | perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java | 6 |
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(); |