summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_futex.c
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-02-25 12:43:07 +0000
committernetchild <netchild@FreeBSD.org>2007-02-25 12:43:07 +0000
commit249ecc90783a698115fee53b0e6eb803f57f32d1 (patch)
treeb3d97d81556d7ee489f29de1eec8460c1dcd14b4 /sys/compat/linux/linux_futex.c
parent40358f3b01016f4f832cc7468ad9a5231403339e (diff)
downloadFreeBSD-src-249ecc90783a698115fee53b0e6eb803f57f32d1.zip
FreeBSD-src-249ecc90783a698115fee53b0e6eb803f57f32d1.tar.gz
MFp4 (110541):
Sync with rev 1.7 in NetBSD. Obtained from: NetBSD
Diffstat (limited to 'sys/compat/linux/linux_futex.c')
-rw-r--r--sys/compat/linux/linux_futex.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 08f5709..58b2f51 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_futex.c,v 1.5 2005/11/23 16:14:57 manu Exp $ */
+/* $NetBSD: linux_futex.c,v 1.7 2006/07/24 19:01:49 manu Exp $ */
/*-
* Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#if 0
-__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.5 2005/11/23 16:14:57 manu Exp $");
+__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.7 2006/07/24 19:01:49 manu Exp $");
#endif
#include "opt_compat.h"
@@ -393,6 +393,11 @@ futex_sleep(struct futex *f, struct thread *td, unsigned long timeout)
timeout);
#endif
ret = tsleep(wp, PCATCH | PZERO, "linuxfutex", timeout);
+#ifdef DEBUG
+ if (ldebug(sys_futex))
+ printf("FUTEX -> %d tsleep returns %d\n",
+ td->td_proc->p_pid, ret);
+#endif
FUTEX_LOCK;
TAILQ_REMOVE(&f->f_waiting_proc, wp, wp_list);
OpenPOWER on IntegriCloud