summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_futex.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_futex.c')
-rw-r--r--sys/compat/linux/linux_futex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 8e7ee23..ec329ca 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -302,7 +302,9 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args)
ret = futex_wake(f, args->val, NULL);
futex_put(f);
if (op_ret > 0) {
+#ifdef DEBUG
printf("second wakeup\n");
+#endif
op_ret = 0;
/* Linux always puts there 0 retries */
op_ret += futex_wake(f2, 0, NULL);
OpenPOWER on IntegriCloud