Zond: принудительное завершение процесса
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
group = 'asys'
|
group = 'asys'
|
||||||
version = '0.7.2-SNAPSHOT'
|
version = '0.7.3-SNAPSHOT'
|
||||||
|
|
||||||
apply plugin: 'application'
|
apply plugin: 'application'
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,11 @@ public class ZondCommandHandler implements CommandHandler {
|
|||||||
threadExec = new Thread(task, "Zond Exec");
|
threadExec = new Thread(task, "Zond Exec");
|
||||||
threadExec.start();
|
threadExec.start();
|
||||||
}
|
}
|
||||||
|
} else if (line.equalsIgnoreCase("kill")) {
|
||||||
|
if (watchdog != null) {
|
||||||
|
watchdog.destroyProcess();
|
||||||
|
threadExec.interrupt();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user