mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Check for terminate first when destroy()
This commit is contained in:
parent
9cd17db724
commit
e1c79c7850
1 changed files with 11 additions and 9 deletions
|
@ -110,6 +110,7 @@ public class MIProcess extends Process {
|
|||
* @see java.lang.Process#destroy()
|
||||
*/
|
||||
public void destroy() {
|
||||
if (!isTerminated()) {
|
||||
CommandFactory factory = session.getCommandFactory();
|
||||
MIExecAbort abort = factory.createMIExecAbort();
|
||||
CLICommand yes = new CLICommand("yes") {
|
||||
|
@ -120,6 +121,7 @@ public class MIProcess extends Process {
|
|||
session.postCommand(yes);
|
||||
} catch (MIException e) {
|
||||
}
|
||||
}
|
||||
// Do not wait for answer.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue