Roland Mainz wrote:
> The problem is that this is absolutely non-portable. Such scripts won't
> be able to run outside Solaris unless you add something like...
> -- snip --
> if [[ "$(uname -s)" == "SunOS" ]] ; then 
>       builtin -f solaris_rctl.so.1 newtask
>       builtin -f solaris_rctl.so.1 prctl
>       newtask
>       prctl -n task.max-lwps -v 256 $$
> else
>       ulimit -T 256
> fi
> -- snip --

Exactly how is ulimit -T portable didn't you already say it *does not* 
exist as part of POSIX and isn't available on other systems ?

Personally I don't object to adding a 'ulimit -T' I was just showing how 
the functionality I believe you described could be achieved using 
existing Solaris functionality.

-- 
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to