Skip to content

Commit df509bf

Browse files
whessecommit-bot@chromium.org
authored andcommitted
[infra] Kill test runner's batch compilers with sigkill if sigterm fails.
Change-Id: Ica226b2b4d2356d6ef0e7a428eed7a7e2d18fe7e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110224 Auto-Submit: William Hesse <[email protected]> Reviewed-by: Jonas Jensen <[email protected]> Commit-Queue: William Hesse <[email protected]>
1 parent a2aec5e commit df509bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/test_runner/lib/src/process_queue.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,11 @@ class BatchRunnerProcess {
10361036
Future<bool> terminate() {
10371037
if (_process == null) return Future.value(true);
10381038
var terminateCompleter = Completer<bool>();
1039+
final sigkillTimer = Timer(Duration(seconds: 5), () {
1040+
_process.kill(io.ProcessSignal.sigkill);
1041+
});
10391042
_processExitHandler = (_) {
1043+
sigkillTimer.cancel();
10401044
terminateCompleter.complete(true);
10411045
};
10421046
_process.kill();

0 commit comments

Comments
 (0)