From: Ian Campbell Date: Fri, 25 Oct 2013 07:47:35 +0000 (+0100) Subject: libxenstore: Use PTHREAD_STACK_MIN X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6121 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=35e874b1d5d56dd2098313364b879c637fa56844;p=xen.git libxenstore: Use PTHREAD_STACK_MIN The existing value of 16K is smaller than the arm64 minimum stack size, which is 128K. PTHREAD_STACK_MIN appears to be standard http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_attr_setstacksize.html Consindered setting a lower bound but the stack requirements of the watcher thread are pretty minimal (tens of bytes from the looks of it) and unlikely to blow PTHREAD_STACK_MIN on any useful platform. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c index b1e6820cf4..261b841310 100644 --- a/tools/xenstore/xs.c +++ b/tools/xenstore/xs.c @@ -723,7 +723,7 @@ bool xs_watch(struct xs_handle *h, const char *path, const char *token) struct iovec iov[2]; #ifdef USE_PTHREAD -#define READ_THREAD_STACKSIZE (16 * 1024) +#define READ_THREAD_STACKSIZE PTHREAD_STACK_MIN /* We dynamically create a reader thread on demand. */ mutex_lock(&h->request_mutex);