diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-06-13 21:04:23 +0000 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-06-13 21:04:23 +0000 |
| commit | 7332f6b244e39e3c68224982a1baaeebe0d1d4a8 (patch) | |
| tree | 3fa938dd61a96020a36c3de9d2f6857003ec1b28 | |
| parent | cdc6060cfab8e07a11d17716c7e329f6abf49751 (diff) | |
| download | illumos-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.c | 2 |
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: |
