diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2011-09-19 16:37:13 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-20 14:32:56 +0200 |
commit | e1d3b254999bd628c7defdda860422baddb73781 (patch) | |
tree | b658c6f8dd6c401739515e8cac0777b2d2f4b0d6 /cpus.c | |
parent | bd5da23265ba3bb11a9f0913e016e3c3a16abf8e (diff) | |
download | qemu-e1d3b254999bd628c7defdda860422baddb73781.zip qemu-e1d3b254999bd628c7defdda860422baddb73781.tar.gz qemu-e1d3b254999bd628c7defdda860422baddb73781.tar.bz2 |
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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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 |