diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2012-01-08 19:56:52 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2012-01-08 19:56:52 -0500 |
commit | 232872379ee82cd040a52a48cbbae65a249b5765 (patch) | |
tree | d144e4f23a2e9e6d658fd3c844ced70de22af76d /nptl/sysdeps/unix/sysv/linux/aio_misc.h | |
parent | 669704fd6145e79c12f4d338af1749cdaf1ebcf6 (diff) | |
download | glibc-232872379ee82cd040a52a48cbbae65a249b5765.tar.gz glibc-232872379ee82cd040a52a48cbbae65a249b5765.tar.xz glibc-232872379ee82cd040a52a48cbbae65a249b5765.zip |
Use __pthread_get_minstack for AIO helper thread
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/aio_misc.h')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/aio_misc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/aio_misc.h b/nptl/sysdeps/unix/sysv/linux/aio_misc.h index 406d96e865..8011c3e331 100644 --- a/nptl/sysdeps/unix/sysv/linux/aio_misc.h +++ b/nptl/sysdeps/unix/sysv/linux/aio_misc.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2006, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek <jakub@redhat.com>, 2004. @@ -47,7 +47,7 @@ __aio_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, PTHREAD_STACK_MIN); + (void) pthread_attr_setstacksize (&attr, __pthread_get_minstack (&attr)); /* Block all signals in the helper thread. To do this thoroughly we temporarily have to block all signals here. */ |