提交 b48ce888 编写于 作者: K kohsuke

bug fix


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7979 71c3de6d-444a-0410-be80-ed276b4c234a
上级 baa6c9d6
......@@ -385,8 +385,10 @@ public abstract class ProcessTreeKiller {
String line;
while((line=r.readLine())!=null) {
line=line.toLowerCase(Locale.ENGLISH);
if(line.startsWith("ppid:"))
ppid = Integer.parseInt(line.substring(4).trim());
if(line.startsWith("ppid:")) {
ppid = Integer.parseInt(line.substring(5).trim());
break;
}
}
} finally {
r.close();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册