summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index efb98ab9e0..410d2a9939 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1593,7 +1593,8 @@ def main():
1593 1593
1594 def sigterm_handler(signum, frame): 1594 def sigterm_handler(signum, frame):
1595 logger.info("SIGTERM received") 1595 logger.info("SIGTERM received")
1596 os.kill(config.qemupid, signal.SIGTERM) 1596 if config.qemupid:
1597 os.kill(config.qemupid, signal.SIGTERM)
1597 config.cleanup() 1598 config.cleanup()
1598 # Deliberately ignore the return code of 'tput smam'. 1599 # Deliberately ignore the return code of 'tput smam'.
1599 subprocess.call(["tput", "smam"]) 1600 subprocess.call(["tput", "smam"])