Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2012 00:20:31 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239135 - head/sys/kern
Message-ID:  <201208080020.q780KVjw022285@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Aug  8 00:20:30 2012
New Revision: 239135
URL: http://svn.freebsd.org/changeset/base/239135

Log:
  Always initialize pl_event.
  
  Submitted by:	Andrey Zonov <andrey@zonov.org>
  MFC after:	3 days

Modified:
  head/sys/kern/sys_process.c

Modified: head/sys/kern/sys_process.c
==============================================================================
--- head/sys/kern/sys_process.c	Tue Aug  7 23:45:43 2012	(r239134)
+++ head/sys/kern/sys_process.c	Wed Aug  8 00:20:30 2012	(r239135)
@@ -1112,6 +1112,7 @@ kern_ptrace(struct thread *td, int req, 
 #endif
 		pl = addr;
 		pl->pl_lwpid = td2->td_tid;
+		pl->pl_event = PL_EVENT_NONE;
 		pl->pl_flags = 0;
 		if (td2->td_dbgflags & TDB_XSIG) {
 			pl->pl_event = PL_EVENT_SIGNAL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208080020.q780KVjw022285>