Skip to content
Permalink
Browse files

Fixed JENKINS-8614 ProcessTreeTest fails on Windows

  • Loading branch information...
lmwang committed Apr 1, 2013
1 parent 70d8a6f commit 97c28e0a516a1647c3621838fb0629368c7b5873
Showing with 10 additions and 1 deletion.
  1. +10 −1 core/src/main/java/hudson/util/ProcessTree.java
@@ -424,7 +424,16 @@ public void kill() throws InterruptedException {

@Override
public synchronized EnvVars getEnvironmentVariables() {
if(env==null) env = new EnvVars(p.getEnvironmentVariables());
if(env==null)
{
try
{
env = new EnvVars(p.getEnvironmentVariables());
} catch (WinpException e)
{
LOGGER.log(FINEST, "Failed to get environment variable ", e);
}
}
return env;
}
});

0 comments on commit 97c28e0

Please sign in to comment.
You can’t perform that action at this time.