Module Name: src
Committed By: kamil
Date: Sat Jan 14 19:32:10 UTC 2017
Modified Files:
src/sys/kern: kern_lwp.c
Log Message:
Fix generation of PTRACE_LWP_EXIT event
Set p_lwp_exited instead of p_lwp_created for PTRACE_LWP_EXIT.
This made the lwp_exit1 ATF test passing.
Sponsored by <The NetBSD Foundation>
To generate a diff of this commit:
cvs rdiff -u -r1.186 -r1.187 src/sys/kern/kern_lwp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_lwp.c
diff -u src/sys/kern/kern_lwp.c:1.186 src/sys/kern/kern_lwp.c:1.187
--- src/sys/kern/kern_lwp.c:1.186 Sat Jan 14 06:36:52 2017
+++ src/sys/kern/kern_lwp.c Sat Jan 14 19:32:10 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.186 2017/01/14 06:36:52 kamil Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.187 2017/01/14 19:32:10 kamil Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.186 2017/01/14 06:36:52 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.187 2017/01/14 19:32:10 kamil Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -1056,7 +1056,7 @@ lwp_exit(struct lwp *l)
/* Tracing */
KASSERT((l->l_flag & LW_SYSTEM) == 0);
- p->p_lwp_created = l->l_lid;
+ p->p_lwp_exited = l->l_lid;
KSI_INIT_EMPTY(&ksi);
ksi.ksi_signo = SIGTRAP;