mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-25 16:10:16 +00:00
m1n1.hv: Don't die on ^C in the shell
This commit is contained in:
parent
03ceed3a97
commit
dbeb174ac9
1 changed files with 3 additions and 3 deletions
|
@ -694,7 +694,7 @@ class HV(Reloadable):
|
|||
self._sigint_pending = False
|
||||
self._stepping = False
|
||||
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
signal.signal(signal.SIGINT, self.default_sigint)
|
||||
ret = shell.run_shell(self.shell_locals, "Entering hypervisor shell", "Returning from exception")
|
||||
signal.signal(signal.SIGINT, self._handle_sigint)
|
||||
|
||||
|
@ -721,7 +721,7 @@ class HV(Reloadable):
|
|||
self._sigint_pending = False
|
||||
self._stepping = False
|
||||
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
signal.signal(signal.SIGINT, self.default_sigint)
|
||||
ret = shell.run_shell(self.shell_locals, "Entering panic shell", "Returning from exception")
|
||||
signal.signal(signal.SIGINT, self._handle_sigint)
|
||||
|
||||
|
@ -1178,7 +1178,7 @@ class HV(Reloadable):
|
|||
print(f"Jumping to entrypoint at 0x{self.entry:x}")
|
||||
|
||||
self.iface.dev.timeout = None
|
||||
signal.signal(signal.SIGINT, self._handle_sigint)
|
||||
self.default_sigint = signal.signal(signal.SIGINT, self._handle_sigint)
|
||||
|
||||
# Does not return
|
||||
self.p.hv_start(self.entry, self.guest_base + self.bootargs_off)
|
||||
|
|
Loading…
Reference in a new issue