diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index f3527a4412..f9a1a0da32 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1573,7 +1573,8 @@ def main(): | |||
1573 | 1573 | ||
1574 | def sigterm_handler(signum, frame): | 1574 | def sigterm_handler(signum, frame): |
1575 | logger.info("SIGTERM received") | 1575 | logger.info("SIGTERM received") |
1576 | os.kill(config.qemupid, signal.SIGTERM) | 1576 | if config.qemupid: |
1577 | os.kill(config.qemupid, signal.SIGTERM) | ||
1577 | config.cleanup() | 1578 | config.cleanup() |
1578 | # Deliberately ignore the return code of 'tput smam'. | 1579 | # Deliberately ignore the return code of 'tput smam'. |
1579 | subprocess.call(["tput", "smam"]) | 1580 | subprocess.call(["tput", "smam"]) |