mirror of
https://github.com/openbsd/src.git
synced 2026-04-23 21:54:32 +00:00
Do not assume futex(2) is always returning an errno value.
In the case of FUTEX_WAKE a number of woken threads is returned. ok guenther@
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: kdump.c,v 1.142 2020/04/05 07:31:45 visa Exp $ */
|
||||
/* $OpenBSD: kdump.c,v 1.143 2020/04/05 08:32:14 mpi Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988, 1993
|
||||
@@ -1128,7 +1128,6 @@ doerr:
|
||||
/* syscalls that return errno values */
|
||||
case SYS_getlogin_r:
|
||||
case SYS___thrsleep:
|
||||
case SYS_futex:
|
||||
if ((error = ret) != 0)
|
||||
goto doerr;
|
||||
/* FALLTHROUGH */
|
||||
|
||||
Reference in New Issue
Block a user