From ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 29 Jul 1998 18:41:02 +0000 Subject: Update. 1998-07-29 Mark Kettenis * sysdeps/mach/hurd/dl-sysdep.c (__lseek): New function. (__getpid): New function. (abort): New function. * nis/nis_cache2_xdr.c: Removed. --- linuxthreads/attr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'linuxthreads/attr.c') diff --git a/linuxthreads/attr.c b/linuxthreads/attr.c index 7a099857..3a19ddc 100644 --- a/linuxthreads/attr.c +++ b/linuxthreads/attr.c @@ -146,10 +146,8 @@ int __pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize) /* First round up the guard size. */ guardsize = roundup (guardsize, ps); - /* The current implementation of LinuxThreads allocates 2MB stack space - for each thread. So the maximum guardsize is 2MB - pagesize. */ - if (guardsize >= STACK_SIZE - ps) - return EINVAL; + /* The guard size must not be larger than the stack itself */ + if (guardsize >= attr->stacksize) return EINVAL; attr->guardsize = guardsize; -- cgit v1.1