Subject: Re: proc.curproc.rlimit.descriptors.soft
To: John R. Shannon <john@johnrshannon.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 02/12/2006 13:40:08
On Sun, Feb 12, 2006 at 04:57:02AM -0700, John R. Shannon wrote:
> John R. Shannon wrote:
> >How can proc.curproc.rlimit.descriptors.soft be raised?
> >
> >sim# sysctl proc.curproc.rlimit.descriptors.hard
> >  proc.curproc.rlimit.descriptors.hard = 3404
> >sim# sysctl -w proc.curproc.rlimit.descriptors.soft=1024
> >  proc.curproc.rlimit.descriptors.soft: 64 -> 1024
> >sim# sysctl proc.curproc.rlimit.descriptors.soft
> >  proc.curproc.rlimit.descriptors.soft = 64
> >
> 
> I found the answer, I need to use ulimit because setting 
> proc.curproc.rlimit.descriptors.soft only changes it for sysctl.

Yes, either ulimit or the PID of your shell instead of curproc:
proc.$$.rlimit.descriptors.soft


-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--