diff options
| -rwxr-xr-x | scripts/runqemu | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index c467b0eb19..66e035c9af 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -1580,7 +1580,8 @@ def main(): | |||
| 1580 | 1580 | ||
| 1581 | def sigterm_handler(signum, frame): | 1581 | def sigterm_handler(signum, frame): |
| 1582 | logger.info("SIGTERM received") | 1582 | logger.info("SIGTERM received") |
| 1583 | os.kill(config.qemupid, signal.SIGTERM) | 1583 | if config.qemupid: |
| 1584 | os.kill(config.qemupid, signal.SIGTERM) | ||
| 1584 | config.cleanup() | 1585 | config.cleanup() |
| 1585 | # Deliberately ignore the return code of 'tput smam'. | 1586 | # Deliberately ignore the return code of 'tput smam'. |
| 1586 | subprocess.call(["tput", "smam"]) | 1587 | subprocess.call(["tput", "smam"]) |
