diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-12-22 22:58:17 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-12-22 22:58:17 -0500 |
commit | ee9e064083b7199fd2c680fa1b2dcf49ff52fedd (patch) | |
tree | 1fc9728d091a357f22442ec3ba88a005d5a1d431 /nptl/sysdeps/pthread | |
parent | 2c1094bd700e63a8d7f547b3f5495bedb55c0a08 (diff) | |
download | glibc-ee9e064083b7199fd2c680fa1b2dcf49ff52fedd.zip glibc-ee9e064083b7199fd2c680fa1b2dcf49ff52fedd.tar.gz glibc-ee9e064083b7199fd2c680fa1b2dcf49ff52fedd.tar.bz2 |
Use __pthread_get_minstack in more places
Diffstat (limited to 'nptl/sysdeps/pthread')
-rw-r--r-- | nptl/sysdeps/pthread/gai_misc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nptl/sysdeps/pthread/gai_misc.h b/nptl/sysdeps/pthread/gai_misc.h index 9094c1e..cbbe476 100644 --- a/nptl/sysdeps/pthread/gai_misc.h +++ b/nptl/sysdeps/pthread/gai_misc.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. +/* Copyright (C) 2006, 2007, 2008, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -97,7 +97,9 @@ __gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *), pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED); /* The helper thread needs only very little resources. */ - (void) pthread_attr_setstacksize (&attr, 4 * PTHREAD_STACK_MIN); + (void) pthread_attr_setstacksize (&attr, + __pthread_get_minstack (&attr) + + 4 * PTHREAD_STACK_MIN); /* Block all signals in the helper thread. To do this thoroughly we temporarily have to block all signals here. */ |