Revision 55541c8a qemu-thread.c

b/qemu-thread.c
137 137
{
138 138
    int err;
139 139

  
140
    /* Leave signal handling to the iothread.  */
141
    sigset_t set, oldset;
142

  
143
    sigfillset(&set);
144
    pthread_sigmask(SIG_SETMASK, &set, &oldset);
140 145
    err = pthread_create(&thread->thread, NULL, start_routine, arg);
141 146
    if (err)
142 147
        error_exit(err, __func__);
148

  
149
    pthread_sigmask(SIG_SETMASK, &oldset, NULL);
143 150
}
144 151

  
145 152
void qemu_thread_signal(QemuThread *thread, int sig)

Also available in: Unified diff