Subject: Re: setrlimit seems to have changed: breaks pkgsrc/net/tor
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 01/11/2007 12:42:34
YAMAMOTO Takashi wrote:
>> we use that argument to pass the
>> process requesting the rlimit change
> 
> can it be different from curproc?

no. that's what the first version of the fix, as you can see.

however, keep in mind that the context may be forwarded to a userland
daemon or a different machine on the network for decision, so I don't
think we can rely on curproc/curlwp here...

so I'd suggest adding a KASSERT maybe, but that's it.

-e.