diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2016-05-17 09:56:22 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2016-05-17 09:56:22 +0000 |
| commit | 2a339d9e3dc129f0b0b79c2cb8d2bb0386fb0f5f (patch) | |
| tree | d626a38beb7329b5a3aa09877b11a5ec03a6eb38 /sys/compat/linux/linux_fork.c | |
| parent | 5105a92c4945e74f7d7c5eb97969d3e7da8fea9b (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux/linux_fork.c')
| -rw-r--r-- | sys/compat/linux/linux_fork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c index de1d041c19ec..4c30c9ab6e4b 100644 --- a/sys/compat/linux/linux_fork.c +++ b/sys/compat/linux/linux_fork.c @@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$"); #include <sys/sched.h> #include <sys/syscallsubr.h> #include <sys/sx.h> +#include <sys/umtx.h> #include <sys/unistd.h> #include <sys/wait.h> @@ -410,6 +411,8 @@ linux_exit(struct thread *td, struct linux_exit_args *args) LINUX_CTR2(exit, "thread(%d) (%d)", em->em_tid, args->rval); + umtx_thread_exit(td); + linux_thread_detach(td); /* |
