diff options
author | 2008-04-24 11:44:26 +0000 | |
---|---|---|
committer | 2008-04-24 11:44:26 +0000 | |
commit | b564175b0a1a291cc30b560d8279197634ef9685 (patch) | |
tree | af54f042fa1cee49c6fd55fc5dc439d9a2f53937 | |
parent | the softnet intr handlers check if the input queue has packets on (diff) | |
download | wireguard-openbsd-b564175b0a1a291cc30b560d8279197634ef9685.tar.xz wireguard-openbsd-b564175b0a1a291cc30b560d8279197634ef9685.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@
-rw-r--r-- | lib/librthread/rthread_sig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread_sig.c b/lib/librthread/rthread_sig.c index def2bd47777..1591cd87ccf 100644 --- a/lib/librthread/rthread_sig.c +++ b/lib/librthread/rthread_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_sig.c,v 1.4 2005/12/30 04:05:55 tedu Exp $ */ +/* $OpenBSD: rthread_sig.c,v 1.5 2008/04/24 11:44:26 kurt Exp $ */ /* * Copyright (c) 2005 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -39,7 +39,7 @@ int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) { - return (sigprocmask(how, set, oset)); + return (sigprocmask(how, set, oset) ? errno : 0); } /* |