Alexander Graf 09716e45a0 sigfd: use pthread_sigmask
Qemu uses signalfd to figure out, if a signal occured without the need
to actually receive the signal. Instead, it can read from the fd to receive
its news.

Now, we obviously don't always have signalfd around. Especially not on
non-Linux systems. So what we do there is that we create a new thread,
block that thread on all signals and simply call sigwait to wait for a
signal we're interested in to occur.

This all sounds great, but what we're really doing is:

    sigset_t all;

    sigfillset(&all);
    sigprocmask(SIG_BLOCK, &all, NULL);

which - on Darwin - blocks all signals on the current _process_, not only
on the current thread. To block signals on the thread, we can use
pthread_sigmask().

This patch does that, assuming that my above analysis is correct, and thus
renders Qemu useable on Darwin again.

Reported-by: Andreas Färber <andreas.faerber@web.de>
Acked-by: Paolo Bonizni <pbonzini@redhat.com>
CC: Jan Kiszka <jan.kiszka@siemens.com>
CC: Anthony Liguori <anthony@codemonkey.ws>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2011-06-10 23:18:19 +02:00
2011-06-08 09:04:29 +01:00
2011-06-03 13:34:01 +02:00
2011-05-20 17:35:12 +02:00
2011-06-03 13:34:02 +02:00
2011-04-16 12:24:28 +01:00
2011-04-08 13:03:34 -06:00
2008-12-13 09:32:43 +00:00
2009-09-12 07:36:22 +00:00
2009-05-13 20:54:26 +01:00
2004-08-01 21:54:53 +00:00
2011-05-08 10:09:59 +02:00
2011-05-08 10:09:59 +02:00
2010-04-09 18:55:56 +02:00
2011-06-08 11:56:40 +02:00
2011-01-10 10:55:10 +01:00
2009-03-10 21:43:35 +00:00
2010-11-01 00:54:06 +03:00
2011-02-20 18:45:09 +01:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2011-01-20 20:58:56 +00:00
2011-06-10 23:18:19 +02:00
2010-10-20 16:15:04 -05:00
2011-03-22 08:39:12 -05:00
2008-10-12 17:54:42 +00:00
2011-03-16 17:11:07 -03:00
2011-04-15 20:14:52 +00:00
2010-05-24 15:18:23 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-09-12 07:36:22 +00:00
2011-06-07 13:52:10 -05:00
2011-06-07 13:52:10 -05:00
2011-06-07 13:52:10 -05:00
2011-01-20 20:54:21 +00:00
2009-12-17 18:12:04 +01:00
2007-09-16 20:03:23 +00:00
2010-05-22 08:02:12 +00:00
2011-04-09 10:56:17 +01:00
2009-10-01 16:12:16 -05:00
2011-03-06 21:01:32 +01:00
2010-11-21 09:16:57 -06:00
2010-11-21 09:16:57 -06:00
2010-05-10 11:36:03 -05:00
2010-05-10 11:36:03 -05:00
2008-12-14 08:50:18 +00:00
2011-05-31 10:18:04 -07:00
2010-03-21 08:28:47 +00:00
2010-05-22 08:24:49 +00:00
2010-01-08 09:58:40 -06:00
2009-09-12 07:36:22 +00:00
2010-12-09 14:23:24 +01:00
2011-03-16 17:11:07 -03:00
2011-02-09 10:33:54 +02:00
2011-05-08 16:55:24 +00:00
2010-05-19 12:45:54 -03:00
2009-11-17 08:49:39 -06:00
2010-07-01 14:27:13 -03:00
2010-07-01 14:27:13 -03:00
2009-10-27 12:28:59 -05:00
2011-06-06 09:14:42 +02:00
2010-09-21 18:36:42 +02:00
2010-05-19 12:45:54 -03:00
2011-06-06 09:14:42 +02:00
2011-01-09 20:59:53 +00:00
2011-03-13 14:44:22 +00:00
2011-06-06 08:54:55 -05:00
2010-05-19 12:45:54 -03:00
2009-11-17 08:49:38 -06:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-10-01 10:12:43 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-09-18 05:53:14 +00:00
2008-12-14 08:50:18 +00:00
2011-01-20 20:54:21 +00:00
2009-09-13 19:38:43 +00:00
2010-03-14 22:04:50 +01:00
2008-12-04 11:29:42 +00:00
2009-10-01 16:12:16 -05:00
2009-03-05 23:01:23 +00:00
2011-02-02 08:39:28 +01:00
2008-09-06 16:31:30 +00:00
2011-05-08 10:10:01 +02:00
2011-05-08 10:10:01 +02:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
A fork of QEMU-Nyx which is better suited for my bachelors thesis
Readme 154 MiB
Languages
C 90.3%
Dylan 2.5%
Python 2.1%
C++ 2%
Shell 1.7%
Other 1.4%