summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: