lwp_wait may return ERESTART
authorDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 4 Sep 2008 23:46:52 +0000 (23:46 +0000)
committerDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 4 Sep 2008 23:46:52 +0000 (23:46 +0000)
nptl/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/lowlevellock.h

index dfcc644..aad334c 100644 (file)
@@ -40,7 +40,7 @@
     do {                                                            \
       sysret_t __ret;                                               \
       result = __systemcall (&__ret, SYS_lwp_wait, (tid), NULL);    \
-    } while (result == EINTR);
+    } while (result == EINTR || result == ERESTART);
 
 #define lll_tryjoin(tid) \
     ({sysret_t __ret;                                               \