From e1d3b254999bd628c7defdda860422baddb73781 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Mon, 19 Sep 2011 16:37:13 +0200 Subject: 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 Reviewed-by: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- cpus.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cpus.c') diff --git a/cpus.c b/cpus.c index 54c188cf5..d0cfe9146 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 -- cgit v1.2.3