summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2014-06-13 21:04:23 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2014-06-13 21:04:23 +0000
commit7332f6b244e39e3c68224982a1baaeebe0d1d4a8 (patch)
tree3fa938dd61a96020a36c3de9d2f6857003ec1b28
parentcdc6060cfab8e07a11d17716c7e329f6abf49751 (diff)
downloadillumos-joyent-7332f6b244e39e3c68224982a1baaeebe0d1d4a8.tar.gz
OS-3105 lxbrand assertion failed panic on debug kernel
-rw-r--r--usr/src/uts/common/brand/lx/os/lx_brand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/uts/common/brand/lx/os/lx_brand.c b/usr/src/uts/common/brand/lx/os/lx_brand.c
index 7a367c4863..44757b376b 100644
--- a/usr/src/uts/common/brand/lx/os/lx_brand.c
+++ b/usr/src/uts/common/brand/lx/os/lx_brand.c
@@ -434,9 +434,11 @@ lx_ptrace_stop_for_option(int option)
* setup specifically before it can send the signal, so do that here.
*/
sqp = kmem_zalloc(sizeof (sigqueue_t), KM_SLEEP);
+ mutex_enter(&pidlock);
p->p_wdata = SIGTRAP;
p->p_wcode = CLD_STOPPED;
sigcld(p, sqp);
+ mutex_exit(&pidlock);
/*
* If (p_proc_flag & P_PR_PTRACE) were set, then in stop() we would set: