about summary refs log tree commit diff
path: root/nptl/pthread_getattr_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_getattr_np.c')
-rw-r--r--nptl/pthread_getattr_np.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_getattr_np.c b/nptl/pthread_getattr_np.c
index 9cc948f4c6..f66e97fa68 100644
--- a/nptl/pthread_getattr_np.c
+++ b/nptl/pthread_getattr_np.c
@@ -70,7 +70,7 @@ pthread_getattr_np (thread_id, attr)
     {
       /* No stack information available.  This must be for the initial
 	 thread.  Get the info in some magical way.  */
-      assert (thread->pid == thread->tid);
+      assert (abs (thread->pid) == thread->tid);
 
       /* Defined in ld.so.  */
       extern void *__libc_stack_end;