Patchwork [Bug,804517] Re: qemu crashes on Darwin in qemu_iohandler_poll

login
register
mail settings
Submitter Damjan Marion
Date July 1, 2011, 8:02 p.m.
Message ID <20110701200243.16423.77218.malone@soybean.canonical.com>
Download mbox | patch
Permalink /patch/102964/
State New
Headers show

Comments

Damjan Marion - July 1, 2011, 8:02 p.m.
fter bisection seems that this starts happening after following patch:

commit 09716e45a05cc0c93bcf55bd0c0888dd678e490f
Author: Alexander Graf <agraf@suse.de>
Date:   Thu Jun 9 00:55:37 2011 +0200

   sigfd: use pthread_sigmask



However before this patch qemu doesn't respond to keyboard (i.e. commit 31b7c261).

Last full working commit is 630ecca.

Patch

diff --git a/compatfd.c b/compatfd.c
index bd377c4..41586ce 100644
--- a/compatfd.c
+++ b/compatfd.c
@@ -29,7 +29,7 @@  static void *sigwait_compat(void *opaque)
    sigset_t all;

    sigfillset(&all);
-    sigprocmask(SIG_BLOCK, &all, NULL);
+    pthread_sigmask(SIG_BLOCK, &all, NULL);

    while (1) {