Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2001 14:48:30 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Julian Elischer <julian@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   RE: cvs commit: src/sys/kern kern_descrip.c
Message-ID:  <Pine.BSF.4.21.0109121446480.59165-100000@InterJet.elischer.org>
In-Reply-To: <XFMail.010912135549.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


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 <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 cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0109121446480.59165-100000>