diff options
| author | christos <christos@NetBSD.org> | 2008-10-26 16:38:22 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2008-10-26 16:38:22 +0000 |
| commit | 5dfa1e6b4a6d46bdcbcb39eb3c35d7ab1e88bc41 (patch) | |
| tree | fdfb6358285d0d25f799c97439d21dc6d9426dd7 /sys/compat/linux/common/linux_exec.c | |
| parent | f9d9dd1c9fd24ec6282bab62f20f67cf99945d90 (diff) | |
futex support fixes from FreeBSD via cube+pengo.
Diffstat (limited to 'sys/compat/linux/common/linux_exec.c')
| -rw-r--r-- | sys/compat/linux/common/linux_exec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_exec.c b/sys/compat/linux/common/linux_exec.c index 8a3fa005fce..93dfc9f91e4 100644 --- a/sys/compat/linux/common/linux_exec.c +++ b/sys/compat/linux/common/linux_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec.c,v 1.106 2008/10/15 06:51:19 wrstuden Exp $ */ +/* $NetBSD: linux_exec.c,v 1.107 2008/10/26 16:38:22 christos Exp $ */ /*- * Copyright (c) 1994, 1995, 1998, 2000, 2007, 2008 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.106 2008/10/15 06:51:19 wrstuden Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.107 2008/10/26 16:38:22 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -152,6 +152,7 @@ linux_e_proc_init(p, parent, forkflags) memset(e, '\0', sizeof(struct linux_emuldata)); e->proc = p; + e->robust_futexes = NULL; if (parent) ep = parent->p_emuldata; @@ -247,6 +248,8 @@ linux_e_proc_exit(struct proc *p) linux_nptl_proc_exit(p); #endif + release_futexes(p); + /* Remove the thread for the group thread list */ mutex_enter(proc_lock); LIST_REMOVE(e, threads); |
