mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
finally destroy process
This commit is contained in:
@@ -161,10 +161,22 @@ public class DefaultCGIExecutor extends AbstractCGIExecutor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Process p = Runtime.getRuntime().exec(execCmd, environment.getEnvArray(),
|
Process p = null;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
p = Runtime.getRuntime().exec(execCmd, environment.getEnvArray(),
|
||||||
workDirectory);
|
workDirectory);
|
||||||
|
|
||||||
execute(p);
|
execute(p);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (p != null)
|
||||||
|
{
|
||||||
|
p.destroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user