Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2002-10-15 18:13:20 +0000
committerAlain Magloire2002-10-15 18:13:20 +0000
commit251fa2d9e37c534766b0b90c56d996f258685717 (patch)
tree5246b22782863699be6421cf499584e6e6f5d5c2 /core/org.eclipse.cdt.core.solaris
parentffbaedf13d4eef381d7b84b50da533d007732aab (diff)
downloadorg.eclipse.cdt-251fa2d9e37c534766b0b90c56d996f258685717.tar.gz
org.eclipse.cdt-251fa2d9e37c534766b0b90c56d996f258685717.tar.xz
org.eclipse.cdt-251fa2d9e37c534766b0b90c56d996f258685717.zip
Trim the line before parsing.
Diffstat (limited to 'core/org.eclipse.cdt.core.solaris')
-rw-r--r--core/org.eclipse.cdt.core.solaris/src/org/eclipse/cdt/internal/core/solaris/ProcessList.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core.solaris/src/org/eclipse/cdt/internal/core/solaris/ProcessList.java b/core/org.eclipse.cdt.core.solaris/src/org/eclipse/cdt/internal/core/solaris/ProcessList.java
index 6ad8c40c11e..311bac138ba 100644
--- a/core/org.eclipse.cdt.core.solaris/src/org/eclipse/cdt/internal/core/solaris/ProcessList.java
+++ b/core/org.eclipse.cdt.core.solaris/src/org/eclipse/cdt/internal/core/solaris/ProcessList.java
@@ -43,7 +43,8 @@ public class ProcessList implements IProcessList {
while ((lastline = psOutput.readLine()) != null) {
//The format of the output should be
//PID space name
-
+
+ lastline = lastline.trim();
int index = lastline.indexOf(' ');
if (index != -1) {
String pidString = lastline.substring(0, index).trim();

Back to the top