summaryrefslogtreecommitdiff
path: root/src/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty.c')
-rw-r--r--src/pty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pty.c b/src/pty.c
index 7c592e6..0888f38 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <pthread.h>
#include <pty.h>
#include <signal.h>
#include <stdlib.h>
@@ -131,7 +132,7 @@ static int setup_child(int master, struct winsize *ws)
/* The child should not inherit our signal mask. */
sigemptyset(&sigset);
- ret = sigprocmask(SIG_SETMASK, &sigset, NULL);
+ ret = pthread_sigmask(SIG_SETMASK, &sigset, NULL);
if (ret)
log_warn("cannot reset blocked signals: %m");