From 888ab0185e141301037d4fc9e045bf700ccc6446 Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Tue, 15 Feb 2005 15:02:11 +0000 Subject: Set the default guardsize and stacksize in the default thread attribute when the library is initialized. --- lib/libkse/thread/thr_init.c | 2 ++ lib/libpthread/thread/thr_init.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/libkse/thread/thr_init.c b/lib/libkse/thread/thr_init.c index 3272365a790c..f963789588bf 100644 --- a/lib/libkse/thread/thr_init.c +++ b/lib/libkse/thread/thr_init.c @@ -435,6 +435,8 @@ init_private(void) _thr_stack_default = THR_STACK32_DEFAULT; _thr_stack_initial = THR_STACK32_INITIAL; } + _pthread_attr_default.guardsize_attr = _thr_guard_default; + _pthread_attr_default.stacksize_attr = _thr_stack_default; init_once = 1; /* Don't do this again. */ } else { /* diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index 3272365a790c..f963789588bf 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -435,6 +435,8 @@ init_private(void) _thr_stack_default = THR_STACK32_DEFAULT; _thr_stack_initial = THR_STACK32_INITIAL; } + _pthread_attr_default.guardsize_attr = _thr_guard_default; + _pthread_attr_default.stacksize_attr = _thr_stack_default; init_once = 1; /* Don't do this again. */ } else { /* -- cgit v1.3