From 4c0d5c96bbe51ed5592f5000438a2bddb37e693a Mon Sep 17 00:00:00 2001 From: Chris Cummins Date: Wed, 6 Oct 2021 17:29:45 +0100 Subject: [PATCH] [llvm] Fix orphaned subprocess. --- compiler_gym/envs/llvm/datasets/llvm_stress.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler_gym/envs/llvm/datasets/llvm_stress.py b/compiler_gym/envs/llvm/datasets/llvm_stress.py index 130add7a7..949b17c49 100644 --- a/compiler_gym/envs/llvm/datasets/llvm_stress.py +++ b/compiler_gym/envs/llvm/datasets/llvm_stress.py @@ -86,6 +86,7 @@ def benchmark_from_seed(self, seed: int) -> Benchmark: ) stdout, _ = llvm_as.communicate(timeout=60) + llvm_stress.communicate(timeout=60) if llvm_stress.returncode or llvm_as.returncode: raise BenchmarkInitError("Failed to generate benchmark")