X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fpselect.c;h=5b709a299c3a4350db585c1c0c91ff1d3ab15a1f;hb=47cb657eca1abf2c26c32c8ce03def994a3ee37c;hp=6b9ba22ad37b95e435b633e17bca047edb6b9575;hpb=c1dcfef8c8e60b139732f79bd8a9787e5d6a805f;p=gnulib.git diff --git a/lib/pselect.c b/lib/pselect.c index 6b9ba22ad..5b709a299 100644 --- a/lib/pselect.c +++ b/lib/pselect.c @@ -62,14 +62,14 @@ pselect (int nfds, fd_set *restrict rfds, /* Signal mask munging should be atomic, but this is the best we can do in this emulation. */ if (sigmask) - sigprocmask (SIG_SETMASK, sigmask, &origmask); + pthread_sigmask (SIG_SETMASK, sigmask, &origmask); select_result = select (nfds, rfds, wfds, xfds, tvp); if (sigmask) { int select_errno = errno; - sigprocmask (SIG_SETMASK, &origmask, NULL); + pthread_sigmask (SIG_SETMASK, &origmask, NULL); errno = select_errno; }