We've changed IPC to use sockets instead of signals, but the process of
closing the SDL window was still trigerring an exit signal causing
an ugly message and not cleaning up after itself.
This patch switches that to use the proper method of cleaning up.
Reported-by: Osier Yang <jyang@redhat.com>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
#include "kvm/i8042.h"
#include "kvm/util.h"
#include "kvm/kvm.h"
+#include "kvm/kvm-cpu.h"
#include <SDL/SDL.h>
#include <pthread.h>
SDL_Delay(1000 / FRAME_RATE);
}
exit:
- kill(0, SIGKVMSTOP);
+ kvm_cpu__reboot();
return NULL;
}