Date: Thu, 05 Apr 2001 15:18:29 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: current@FreeBSD.org Subject: RE: selwakeup() Message-ID: <XFMail.010405151829.jhb@FreeBSD.org> In-Reply-To: <200104052200.SAA71985@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05-Apr-01 Garrett Wollman wrote: > <<On Thu, 05 Apr 2001 14:41:29 -0700 (PDT), John Baldwin <jhb@FreeBSD.ORG> > said: > >> As a safety check we should probably zero the pid right before zfree()'ing a >> proc in wait() however, so that a stale pointer to a free'd process doesn't >> have a valid pid if we do this. > > Should not be necessary. Here is the logic: Ah, forgot about the p_stat check. -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010405151829.jhb>