diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2012-01-12 17:05:35 +0800 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-01-12 10:34:20 -0600 |
commit | 4aa7534d22aaa48663770a98f989450b0cb34ef0 (patch) | |
tree | d7958249552b4ff0db3270314e5de00a263c21ba | |
parent | a7d64ddbcccecab7f212f5ef53897ed408727237 (diff) |
cleanup, save a syscall
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | main-loop.c | 4 |
1 files changed, 1 insertions, 3 deletions
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"); |