(allocate_stack): Set reported_guardsize unconditionally.
authordrepper <drepper>
Fri, 16 Apr 2004 23:49:32 +0000 (23:49 +0000)
committerdrepper <drepper>
Fri, 16 Apr 2004 23:49:32 +0000 (23:49 +0000)
nptl/allocatestack.c

index 4b5af82..33fbbaa 100644 (file)
@@ -618,6 +618,10 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
 
          pd->guardsize = guardsize;
        }
 
          pd->guardsize = guardsize;
        }
+      /* The pthread_getattr_np() calls need to get passed the size
+        requested in the attribute, regardless of how large the
+        actually used guardsize is.  */
+      pd->reported_guardsize = guardsize;
     }
 
 #ifndef __ASSUME_CLONE_STOPPED
     }
 
 #ifndef __ASSUME_CLONE_STOPPED