diff --git a/exec_helpers/subprocess_runner.py b/exec_helpers/subprocess_runner.py index 6f05f0c..172f24a 100644 --- a/exec_helpers/subprocess_runner.py +++ b/exec_helpers/subprocess_runner.py @@ -165,7 +165,7 @@ def close_streams() -> None: # Force stop cycle if no exit code after kill except OSError: exit_code = async_result.interface.poll() - if exit_code is not None: # Nothing to kill + if exit_code is not None and exit_code not in {-9, -15}: # Nothing to kill self.logger.warning( "{!s} has been completed just after timeout: please validate timeout.".format(command) )