summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sigprocmask.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
committerjulian <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
commitc2f7c3e4893b6b5c4494d549b3645e06664bc1b1 (patch)
treeb2e6d3017e236268263978b585f2150cd10b1689 /lib/libpthread/thread/thr_sigprocmask.c
parent321f03c8eddd8cf5aa81836ff1932a74156d30cb (diff)
downloadFreeBSD-src-c2f7c3e4893b6b5c4494d549b3645e06664bc1b1.zip
FreeBSD-src-c2f7c3e4893b6b5c4494d549b3645e06664bc1b1.tar.gz
Submitted by: John Birrell
uthreads update from the author.
Diffstat (limited to 'lib/libpthread/thread/thr_sigprocmask.c')
-rw-r--r--lib/libpthread/thread/thr_sigprocmask.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpthread/thread/thr_sigprocmask.c b/lib/libpthread/thread/thr_sigprocmask.c
index d6e3197..b4a8d84 100644
--- a/lib/libpthread/thread/thr_sigprocmask.c
+++ b/lib/libpthread/thread/thr_sigprocmask.c
@@ -54,28 +54,28 @@ sigprocmask(int how, const sigset_t * set, sigset_t * oset)
/* Process according to what to do: */
switch (how) {
- /* Block signals: */
+ /* Block signals: */
case SIG_BLOCK:
/* Add signals to the existing mask: */
_thread_run->sigmask |= *set;
break;
- /* Unblock signals: */
+ /* Unblock signals: */
case SIG_UNBLOCK:
/* Clear signals from the existing mask: */
_thread_run->sigmask &= ~(*set);
break;
- /* Set the signal process mask: */
+ /* Set the signal process mask: */
case SIG_SETMASK:
/* Set the new mask: */
_thread_run->sigmask = *set;
break;
- /* Trap invalid actions: */
+ /* Trap invalid actions: */
default:
/* Return an invalid argument: */
- _thread_seterrno(_thread_run, EINVAL);
+ errno = EINVAL;
ret = -1;
break;
}
OpenPOWER on IntegriCloud