mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
finally destroy process
This commit is contained in:
@@ -161,11 +161,23 @@ 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);
|
||||
|
||||
execute(p);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (p != null)
|
||||
{
|
||||
p.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
|
||||
Reference in New Issue
Block a user