From 4aa7534d22aaa48663770a98f989450b0cb34ef0 Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Thu, 12 Jan 2012 17:05:35 +0800 Subject: cleanup, save a syscall Signed-off-by: Lai Jiangshan Signed-off-by: Anthony Liguori --- main-loop.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main-loop.c') diff --git a/main-loop.c b/main-loop.c index 60e9748324..692381cb19 100644 --- a/main-loop.c +++ b/main-loop.c @@ -142,14 +142,12 @@ static int qemu_signal_init(void) */ sigemptyset(&set); sigaddset(&set, SIG_IPI); - pthread_sigmask(SIG_BLOCK, &set, NULL); - - sigemptyset(&set); sigaddset(&set, SIGIO); sigaddset(&set, SIGALRM); sigaddset(&set, SIGBUS); pthread_sigmask(SIG_BLOCK, &set, NULL); + sigdelset(&set, SIG_IPI); sigfd = qemu_signalfd(&set); if (sigfd == -1) { fprintf(stderr, "failed to create signalfd\n"); -- cgit v1.2.3