diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qemu.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/qemu.py b/scripts/qemu.py index 16934f1..880e3e8 100644 --- a/scripts/qemu.py +++ b/scripts/qemu.py @@ -88,6 +88,11 @@ class QEMUMachine(object): def is_running(self): return self._popen and (self._popen.returncode is None) + def exitcode(self): + if self._popen is None: + return None + return self._popen.returncode + def get_pid(self): if not self.is_running(): return None |