diff options
author | 2008-04-24 03:31:33 +0000 | |
---|---|---|
committer | 2008-04-24 03:31:33 +0000 | |
commit | 416f625fa249522015c10271be5af2339bf7141c (patch) | |
tree | 57c7fc66becaaa9115d59c78cd47ff8a3bca9949 /lib/libpthread/uthread/uthread_sigmask.c | |
parent | - clarify copyright / license (diff) | |
download | wireguard-openbsd-416f625fa249522015c10271be5af2339bf7141c.tar.xz wireguard-openbsd-416f625fa249522015c10271be5af2339bf7141c.zip |
Return the proper values upon failure per POSIX for pthread_sigmask(3) and
sigprocmask(2) in threaded programs.
From Philip Guenther <guenther at sendmail.com> via PR library/5795.
okay marc@
Diffstat (limited to 'lib/libpthread/uthread/uthread_sigmask.c')
-rw-r--r-- | lib/libpthread/uthread/uthread_sigmask.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_sigmask.c b/lib/libpthread/uthread/uthread_sigmask.c index 04634a8855d..b33227e2aed 100644 --- a/lib/libpthread/uthread/uthread_sigmask.c +++ b/lib/libpthread/uthread/uthread_sigmask.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_sigmask.c,v 1.7 2003/07/08 00:17:19 marc Exp $ */ +/* $OpenBSD: uthread_sigmask.c,v 1.8 2008/04/24 03:31:33 kurt Exp $ */ /* * Copyright (c) 1997 John Birrell <jb@cimlogic.com.au>. * All rights reserved. @@ -75,8 +75,7 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) /* Trap invalid actions: */ default: /* Return an invalid argument: */ - errno = EINVAL; - ret = -1; + ret = EINVAL; break; } |