Setting default/max thread stack size with rlimit

Corey Minyard minyard@acm.org
Thu Feb 6 21:10:00 GMT 2003


I was looking at the code to set the max stack size using rlimit, and I 
saw something a little wierd.  LinuxThreads set the max stack size to 
the current stack size from rlimit, which seems a little wierd.  It 
seems more intuative to set it to the max stack size from rlimit, and 
use the current stack size to set the default stack size.

I have attached a patch to do this.

-Corey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linuxthreads-defstack.diff
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030206/2783968c/attachment.ksh>


More information about the Libc-alpha mailing list