PERFORCE change 67997 for review
David Xu
davidxu at FreeBSD.org
Fri Dec 31 07:11:33 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=67997
Change 67997 by davidxu at davidxu_tiger on 2004/12/31 15:11:30
call _sigprocmask.
Affected files ...
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sigmask.c#3 edit
Differences ...
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sigmask.c#3 (text+ko) ====
@@ -42,16 +42,14 @@
__weak_reference(_pthread_sigmask, pthread_sigmask);
+extern int
+_sigprocmask(int how, const sigset_t *set, sigset_t *oset);
+
int
_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
{
- struct pthread *curthread = _get_curthread();
- int ret;
-
- ret = __sys_sigprocmask(how, set, oset);
- if (ret != 0)
- ret = errno;
- /* Get a fresh copy */
- __sys_sigprocmask(SIG_SETMASK, NULL, &curthread->sigmask);
- return (ret);
+ /* use our overridden verion of _sigprocmask */
+ if (_sigprocmask(how, set, oset))
+ return (errno);
+ return (0);
}
More information about the p4-projects
mailing list