diff options
| author | Scott Gasch <[email protected]> | 2022-02-08 14:38:15 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-08 14:38:15 -0800 |
| commit | 0d63d44ac89aab38fe95f36497adaf95110ab949 (patch) | |
| tree | 150c4fa334505d17d830592901d6b96b3a4d464e /exec_utils.py | |
| parent | 5c212d7639f62fcb936f9d7a0bbe704a9f7b213d (diff) | |
More cleanup.
Diffstat (limited to 'exec_utils.py')
| -rw-r--r-- | exec_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exec_utils.py b/exec_utils.py index df27335..a440de5 100644 --- a/exec_utils.py +++ b/exec_utils.py @@ -1,5 +1,7 @@ #!/usr/bin/env python3 +"""Helper methods concerned with executing subprocesses.""" + import atexit import logging import os @@ -137,7 +139,7 @@ def cmd_in_background(command: str, *, silent: bool = False) -> subprocess.Popen def kill_subproc() -> None: try: if subproc.poll() is None: - logger.info(f'At exit handler: killing {subproc} ({command})') + logger.info('At exit handler: killing %s (%s)', subproc, command) subproc.terminate() subproc.wait(timeout=10.0) except BaseException as be: |
