[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r10883 - in /fsf/trunk/libc/nptl: ChangeLog tst-abstime.c



Author: eglibc
Date: Sun Jul  4 00:03:23 2010
New Revision: 10883

Log:
Import glibc-mainline for 2010-07-04

Modified:
    fsf/trunk/libc/nptl/ChangeLog
    fsf/trunk/libc/nptl/tst-abstime.c

Modified: fsf/trunk/libc/nptl/ChangeLog
==============================================================================
--- fsf/trunk/libc/nptl/ChangeLog (original)
+++ fsf/trunk/libc/nptl/ChangeLog Sun Jul  4 00:03:23 2010
@@ -1,3 +1,7 @@
+2010-07-03  Ulrich Drepper  <drepper@xxxxxxxxxx>
+
+	* tst-abstime.c (do_test): Some more cleanups
+
 2010-07-02  Ulrich Drepper  <drepper@xxxxxxxxxx>
 
 	* tst-abstime.c: Correct testing and add test for sem_timedwait.

Modified: fsf/trunk/libc/nptl/tst-abstime.c
==============================================================================
--- fsf/trunk/libc/nptl/tst-abstime.c (original)
+++ fsf/trunk/libc/nptl/tst-abstime.c Sun Jul  4 00:03:23 2010
@@ -77,7 +77,11 @@
   pthread_rwlock_wrlock (&rw1);
   pthread_rwlock_rdlock (&rw2);
   pthread_mutex_lock (&m2);
-  pthread_create (&pth, 0, th, 0);
+  if (pthread_create (&pth, 0, th, 0) != 0)
+    {
+      puts ("cannot create thread");
+      return 1;
+    }
   r = pthread_cond_timedwait (&c, &m2, &t);
   if (r != ETIMEDOUT)
     {