]>
Commit | Line | Data |
---|---|---|
bb330e25 AF |
1 | commit 232872379ee82cd040a52a48cbbae65a249b5765 |
2 | Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com> | |
3 | Date: Sun Jan 8 19:56:52 2012 -0500 | |
4 | ||
5 | Use __pthread_get_minstack for AIO helper thread | |
6 | ||
7 | diff --git a/nptl/sysdeps/unix/sysv/linux/aio_misc.h b/nptl/sysdeps/unix/sysv/linux/aio_misc.h | |
8 | index 406d96e..8011c3e 100644 | |
9 | --- a/nptl/sysdeps/unix/sysv/linux/aio_misc.h | |
10 | +++ b/nptl/sysdeps/unix/sysv/linux/aio_misc.h | |
11 | @@ -47,7 +47,7 @@ __aio_create_helper_thread (pthread_t *threadp, void *(*tf) (void *), | |
12 | pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED); | |
13 | ||
14 | /* The helper thread needs only very little resources. */ | |
15 | - (void) pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN); | |
16 | + (void) pthread_attr_setstacksize (&attr, __pthread_get_minstack (&attr)); | |
17 | ||
18 | /* Block all signals in the helper thread. To do this thoroughly we | |
19 | temporarily have to block all signals here. */ |