Subject: Re: sysctl proc.curproc.rlimit.descriptors.soft
To: Caffeinate The World <mochaexpress@yahoo.com>
From: Ron Roskens <roskens@elfin.net>
List: netbsd-users
Date: 02/04/2003 22:40:41
My best guess is that when you run 'sysctl proc', curproc is the pid of
the "sysctl" process, not the shell that your running it under.

To set it for a specific proc use "sysctl -w proc.${pid}...."

ie: for the current process.
$ sysctl -w proc.$$.rlimit.descriptors.soft=128

On Tue, 4 Feb 2003, Caffeinate The World wrote:

> Date: Tue, 4 Feb 2003 20:21:55 -0800 (PST)
> From: Caffeinate The World <mochaexpress@yahoo.com>
> To: netbsd <netbsd-users@netbsd.org>
> Subject: sysctl proc.curproc.rlimit.descriptors.soft
>
> why doesn't this get set properly?
>
> # sysctl proc.curproc.rlimit.descriptors.soft
> proc.curproc.rlimit.descriptors.soft = 64
> # sysctl -w proc.curproc.rlimit.descriptors.soft=128
> proc.curproc.rlimit.descriptors.soft: 64 -> 128
> # sysctl proc.curproc.rlimit.descriptors.soft
> proc.curproc.rlimit.descriptors.soft = 64
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>