summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-04-05 08:32:15 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-04-05 08:32:15 +0000
commit9c96720d515800fd269c991cf9c24741f941e95c (patch)
treea52dbb9508a661e88a7bc5dcad381646684fe3bc /usr.bin/kdump
parent1fac5a733b9476866b7b16457d34168e91ee5d6a (diff)
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@
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 1c510bfb5d2..fb71d3c7520 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -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 */