diff --git a/compatfd.c b/compatfd.c index bd377c411a365f9cc8141e42678fd84f424bdadd..41586ceaea969e1eef23c17ec8214a3aa5a3f8ff 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) { int sig;