Restore terminal settings on grub-emu exit.
This commit is contained in:
parent
0edd750e50
commit
64e2d139fe
2 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,12 @@ grub_reboot (void)
|
|||
longjmp (main_env, 1);
|
||||
}
|
||||
|
||||
void
|
||||
grub_exit (void)
|
||||
{
|
||||
grub_reboot ();
|
||||
}
|
||||
|
||||
void
|
||||
grub_machine_init (void)
|
||||
{
|
||||
|
|
|
@ -134,11 +134,13 @@ xasprintf (const char *fmt, ...)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined (GRUB_MACHINE_EMU) || defined (GRUB_UTIL)
|
||||
void
|
||||
grub_exit (void)
|
||||
{
|
||||
exit (1);
|
||||
}
|
||||
#endif
|
||||
|
||||
grub_uint64_t
|
||||
grub_get_time_ms (void)
|
||||
|
|
Loading…
Reference in a new issue