Message ID | 7f95eb486a2d07cf0c821d5301fd670de34fe2d1.1639409496.git.steve@sakoman.com |
---|---|
State | Accepted, archived |
Commit | 7f95eb486a2d07cf0c821d5301fd670de34fe2d1 |
Headers | show |
Series | [dunfell,01/10] cve-extra-exclusions: add db CVEs to exclusion list | expand |
diff --git a/scripts/runqemu b/scripts/runqemu index 10880ba6bb..51607f10e5 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1516,7 +1516,8 @@ def main(): def sigterm_handler(signum, frame): logger.info("SIGTERM received") - os.kill(config.qemupid, signal.SIGTERM) + if config.qemupid: + os.kill(config.qemupid, signal.SIGTERM) config.cleanup() # Deliberately ignore the return code of 'tput smam'. subprocess.call(["tput", "smam"])