summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2005-02-15 15:02:11 +0000
committerdeischen <deischen@FreeBSD.org>2005-02-15 15:02:11 +0000
commit80b24bb8d5d29ac89643fbcdac0fe972c6ed7977 (patch)
treec299b5cf8f8e28f382b030e6c04ef6a0c784f36d /lib/libkse
parent93764b6de1bd6c80e0418fd802bcd7377da0d7f3 (diff)
downloadFreeBSD-src-80b24bb8d5d29ac89643fbcdac0fe972c6ed7977.zip
FreeBSD-src-80b24bb8d5d29ac89643fbcdac0fe972c6ed7977.tar.gz
Set the default guardsize and stacksize in the default thread
attribute when the library is initialized.
Diffstat (limited to 'lib/libkse')
-rw-r--r--lib/libkse/thread/thr_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_init.c b/lib/libkse/thread/thr_init.c
index 3272365..f963789 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 {
/*
OpenPOWER on IntegriCloud