Message ID | 7e37e453e15114dec0b89636e92f93c7fa127ae4.1639365111.git.anuj.mittal@intel.com |
---|---|
State | Accepted, archived |
Commit | 7e37e453e15114dec0b89636e92f93c7fa127ae4 |
Headers | show |
Series | [hardknott,01/20] python3: upgrade 3.9.7 -> 3.9.9 | expand |
diff --git a/scripts/runqemu b/scripts/runqemu index f3527a4412..f9a1a0da32 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1573,7 +1573,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"])