From owner-cvs-all Wed Sep 12 14:39:54 2001 Delivered-To: cvs-all@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id A169D37B406; Wed, 12 Sep 2001 14:39:48 -0700 (PDT) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA60072; Wed, 12 Sep 2001 14:48:32 -0700 (PDT) Date: Wed, 12 Sep 2001 14:48:30 -0700 (PDT) From: Julian Elischer To: John Baldwin Cc: Julian Elischer , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/kern kern_descrip.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 12 Sep 2001, John Baldwin wrote: > > On 12-Sep-01 Julian Elischer wrote: > > julian 2001/09/12 13:26:58 PDT > > > > Modified files: > > sys/kern kern_descrip.c > > Log: > > If an incoming struct proc could have been NULL before, tehn don't > > automatically change the code to add > > Most of these NULL checks are most likely bogus. Before SMPng we had no > process for the idle context and curproc was NULL. However, SMPng reintroduced > idle threads so that curproc is never NULL once it is first set in the MD > startup code prior to mi_startup(). Well, s/curproc/curthread/. In this case the thread can be NULL if the file descriptor being closed was only open while being transferred on a unix domain socket, but not actually owned by a process. > > -- > > John Baldwin -- 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 cvs-all" in the body of the message