Restore terminal settings on grub-emu exit.

This commit is contained in:
Michael Chang 2016-01-22 11:05:32 +01:00 committed by Vladimir Serbinenko
parent 0edd750e50
commit 64e2d139fe
2 changed files with 8 additions and 0 deletions

View file

@ -65,6 +65,12 @@ grub_reboot (void)
longjmp (main_env, 1);
}
void
grub_exit (void)
{
grub_reboot ();
}
void
grub_machine_init (void)
{

View file

@ -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)