Parent Directory | Revision Log | Patch
revision 1.6 by camm, Tue Dec 18 20:15:42 2001 UTC | revision 1.7 by camm, Fri Jan 4 21:21:38 2002 UTC | |
---|---|---|
# | Line 216 char **argv, **envp; | Line 216 char **argv, **envp; |
216 | install_segmentation_catcher(); | install_segmentation_catcher(); |
217 | ||
218 | #ifdef BSD | #ifdef BSD |
219 | #ifndef MAX_STACK_SIZE | |
220 | #define MAX_STACK_SIZE (1<<23) /* 8Mb */ | |
221 | #endif | |
222 | #ifdef RLIMIT_STACK | #ifdef RLIMIT_STACK |
223 | getrlimit(RLIMIT_STACK, &rl); | getrlimit(RLIMIT_STACK, &rl); |
224 | if (rl.rlim_cur == RLIM_INFINITY) | |
225 | rl.rlim_cur=MAX_STACK_SIZE; | |
226 | cssize = rl.rlim_cur/4 - 4*CSGETA; | cssize = rl.rlim_cur/4 - 4*CSGETA; |
227 | #endif | #endif |
228 | #endif | #endif |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |