summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2018-04-24 17:19:35 +0000
committerpirofti <pirofti@openbsd.org>2018-04-24 17:19:35 +0000
commite6f936ae14eefce39afc9f91b0bfa68a690753d9 (patch)
tree107825a623a8856cc1b5ced3b33bc05644db72f3 /lib/libc/sys
parentaccount for FPU context switch (uvm statistic only) (diff)
downloadwireguard-openbsd-e6f936ae14eefce39afc9f91b0bfa68a690753d9.tar.xz
wireguard-openbsd-e6f936ae14eefce39afc9f91b0bfa68a690753d9.zip
Make futex(2) also return ECANCELED in case SA_RESTART was set.
Prodded by and ok mpi@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/futex.29
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/futex.2 b/lib/libc/sys/futex.2
index d8528681ba4..1fc2d080a95 100644
--- a/lib/libc/sys/futex.2
+++ b/lib/libc/sys/futex.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: futex.2,v 1.3 2017/04/28 17:54:24 mpi Exp $
+.\" $OpenBSD: futex.2,v 1.4 2018/04/24 17:19:35 pirofti Exp $
.\"
.\" Copyright (c) 2017 Martin Pieuchot
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: April 28 2017 $
+.Dd $Mdocdate: April 24 2018 $
.Dt FUTEX 2
.Os
.Sh NAME
@@ -122,8 +122,13 @@ The
expired before the thread was woken up
.It Bq Er EINTR
A signal arrived.
+.It Bq Er ECANCELED
+A signal arrived and
+.Fa SA_RESTART
+was set.
.El
.Sh SEE ALSO
+.Xr sigaction 2 ,
.Xr pthread_cond_wait 3 ,
.Xr pthread_mutex_lock 3 ,
.Xr tsleep 9