X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpselect.c;h=4e7a7ed86e72690b677389ea9c0be99e5b93ecc3;hb=afecf4a0bde14016fb4ab2a18395d82cfbc0fe28;hp=6b9ba22ad37b95e435b633e17bca047edb6b9575;hpb=c1dcfef8c8e60b139732f79bd8a9787e5d6a805f;p=gnulib.git diff --git a/lib/pselect.c b/lib/pselect.c index 6b9ba22ad..4e7a7ed86 100644 --- a/lib/pselect.c +++ b/lib/pselect.c @@ -1,6 +1,6 @@ /* pselect - synchronous I/O multiplexing - Copyright 2011 Free Software Foundation, Inc. + Copyright 2011-2012 Free Software Foundation, Inc. This file is part of gnulib. @@ -15,8 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ /* written by Paul Eggert */ @@ -62,14 +61,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; }