diff --git a/man7/pthreads.7 b/man7/pthreads.7 index f2d2e7228..02ad57a50 100644 --- a/man7/pthreads.7 +++ b/man7/pthreads.7 @@ -273,6 +273,22 @@ However, a new thread's alternate signal stack settings are copied from the thread that created it, so that the threads initially share an alternate signal stack (fixed in kernel 2.6.16). +.PP +Note the following further points about the NPTL implementation: +.IP \- 3 +If the stack size soft resource limit (see the description of +.B RLIMIT_STACK +in +.BR setrlimit (2)) +is set to a value other than +.IR unlimited , +then this value defines the default stack size for new threads. +To be effective, this limit must be set before the program +is executed, perhaps using the +.I ulimit -s +shell built-in command +.RI ( "limit stacksize" +in the C shell). .SS "Determining the Threading Implementation" Since glibc 2.3.2, the .BR getconf (1)