diff options
Diffstat (limited to 'lib/libkse/thread/thr_sigprocmask.c')
-rw-r--r-- | lib/libkse/thread/thr_sigprocmask.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libkse/thread/thr_sigprocmask.c b/lib/libkse/thread/thr_sigprocmask.c index d6e3197..b4a8d84 100644 --- a/lib/libkse/thread/thr_sigprocmask.c +++ b/lib/libkse/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; } |