Subject: sysctl : 'unlimited' = invalid argument
To: None <netbsd-users@netbsd.org>
From: Jean-Luc Wasmer <jl.netbsd@wasmer.ca>
List: netbsd-users
Date: 01/07/2003 10:08:58
Hi,

I updated a machine to 1.6 and the following command which used to work, now returns
with an error:

> vega# sysctl -w proc.209.rlimit.datasize.soft=unlimited
> proc.209.rlimit.datasize.soft: sysctl() failed with Invalid argument

It works if I replace unlimited with a value.
The man page says:
> For variables below `proc.<pid>.rlimit', the integer value
> may be replaced with the string `unlimited' if it matches the
> magic value used to disable a limit.

I'm not sure what
"if it matches the magic value used to disable a limit."
means.

JL