Revert "main-loop.c: Handle SIGINT, SIGHUP and SIGTERM synchronously"
This reverts commit 15124e142034d21341ec9f1a304a1dc5a6c25681. It breaks debuggability of qemu and is no longer needed as the problem has now been addressed in a different way. Instead we provide a comment about why these signals must be handled asynchronously. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Gonglei <arei.gonglei@huawei.com> [PMM: added comment] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
817ef04db2
commit
3e9418e160
@ -84,9 +84,11 @@ static int qemu_signal_init(void)
|
|||||||
sigaddset(&set, SIGIO);
|
sigaddset(&set, SIGIO);
|
||||||
sigaddset(&set, SIGALRM);
|
sigaddset(&set, SIGALRM);
|
||||||
sigaddset(&set, SIGBUS);
|
sigaddset(&set, SIGBUS);
|
||||||
sigaddset(&set, SIGINT);
|
/* SIGINT cannot be handled via signalfd, so that ^C can be used
|
||||||
sigaddset(&set, SIGHUP);
|
* to interrupt QEMU when it is being run under gdb. SIGHUP and
|
||||||
sigaddset(&set, SIGTERM);
|
* SIGTERM are also handled asynchronously, even though it is not
|
||||||
|
* strictly necessary, because they use the same handler as SIGINT.
|
||||||
|
*/
|
||||||
pthread_sigmask(SIG_BLOCK, &set, NULL);
|
pthread_sigmask(SIG_BLOCK, &set, NULL);
|
||||||
|
|
||||||
sigdelset(&set, SIG_IPI);
|
sigdelset(&set, SIG_IPI);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user