summaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2011-09-19 16:37:13 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-20 14:32:56 +0200
commite1d3b254999bd628c7defdda860422baddb73781 (patch)
treeb658c6f8dd6c401739515e8cac0777b2d2f4b0d6 /cpus.c
parentbd5da23265ba3bb11a9f0913e016e3c3a16abf8e (diff)
downloadqemu-e1d3b254999bd628c7defdda860422baddb73781.tar.gz
qemu-e1d3b254999bd628c7defdda860422baddb73781.tar.bz2
qemu-e1d3b254999bd628c7defdda860422baddb73781.zip
block: avoid SIGUSR2
Now that iothread is always compiled sending a signal seems only an additional step. This patch also avoid writing to two pipe (one from signal and one in qemu_service_io). Work with kvm enabled or disabled. strace output is more readable (less syscalls). [ kwolf: Merged build fix by Paolo Bonzini ] Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cpus.c b/cpus.c
index 54c188cf5c..d0cfe91466 100644
--- a/cpus.c
+++ b/cpus.c
@@ -380,11 +380,6 @@ static int qemu_signal_init(void)
int sigfd;
sigset_t set;
- /* SIGUSR2 used by posix-aio-compat.c */
- sigemptyset(&set);
- sigaddset(&set, SIGUSR2);
- pthread_sigmask(SIG_UNBLOCK, &set, NULL);
-
/*
* SIG_IPI must be blocked in the main thread and must not be caught
* by sigwait() in the signal thread. Otherwise, the cpu thread will