Subject: Re: no listeners loaded [was: Re: CVS commit: src/sys/kern]
To: None <elad@NetBSD.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 09/14/2006 20:14:42
> > did you omit another part of the patch which turns
> > listeners_have_been_loaded on?
> 
> Yes! :)
> 
> 'listeners_have_been_loaded = TRUE;' in kauth_listen_scope().

then, why not simply:
	if (!listeners_have_been_loaded) {
		KASSERT(SIMPLEQ_EMPTY(&scope->listenq));
		return 0;
	}

if you have a reason, (eg. to avoid a cache fill?)
please add a comment.

YAMAMOTO Takashi