summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/runqemu3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 10880ba6bb..51607f10e5 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1516,7 +1516,8 @@ def main():
1516 1516
1517 def sigterm_handler(signum, frame): 1517 def sigterm_handler(signum, frame):
1518 logger.info("SIGTERM received") 1518 logger.info("SIGTERM received")
1519 os.kill(config.qemupid, signal.SIGTERM) 1519 if config.qemupid:
1520 os.kill(config.qemupid, signal.SIGTERM)
1520 config.cleanup() 1521 config.cleanup()
1521 # Deliberately ignore the return code of 'tput smam'. 1522 # Deliberately ignore the return code of 'tput smam'.
1522 subprocess.call(["tput", "smam"]) 1523 subprocess.call(["tput", "smam"])