diff options
author | kib <kib@FreeBSD.org> | 2014-12-27 00:55:14 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-12-27 00:55:14 +0000 |
commit | 38f7dd4bb8ccb6cb4ed506840f0c8d52fa87d499 (patch) | |
tree | 43d08c4b52a8e715790b7e3ff2f90ae29aa645b9 /sys/kern/kern_exec.c | |
parent | e8e2e634b5ab8e91afb9b7f93c7f0ff096369abe (diff) | |
download | FreeBSD-src-38f7dd4bb8ccb6cb4ed506840f0c8d52fa87d499.zip FreeBSD-src-38f7dd4bb8ccb6cb4ed506840f0c8d52fa87d499.tar.gz |
MFC r275745:
Add facility to stop all userspace processes.
MFC r275753:
Fix gcc build.
MFC r275820:
Add missed break.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 039fdd0..e56831d 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -292,7 +292,7 @@ kern_execve(td, args, mac_p) args->endp - args->begin_envv); if (p->p_flag & P_HADTHREADS) { PROC_LOCK(p); - if (thread_single(SINGLE_BOUNDARY)) { + if (thread_single(p, SINGLE_BOUNDARY)) { PROC_UNLOCK(p); exec_free_args(args); return (ERESTART); /* Try again later. */ @@ -311,9 +311,9 @@ kern_execve(td, args, mac_p) * force other threads to suicide. */ if (error == 0) - thread_single(SINGLE_EXIT); + thread_single(p, SINGLE_EXIT); else - thread_single_end(); + thread_single_end(p, SINGLE_BOUNDARY); PROC_UNLOCK(p); } if ((td->td_pflags & TDP_EXECVMSPC) != 0) { |