2012-06-06 Jonathan Nieder <jrnieder@gmail.com>
* nptl/tst-eintr1.c (tf1): Tolerate EAGAIN from pthread_create.
Gbp-Pq: Topic any
Gbp-Pq: Name local-tst-eintr1-eagain.diff
puts ("pthread_create returned EINTR");
exit (1);
}
+ if (e == EAGAIN)
+ {
+ /* The kernel might not have processed the last few
+ pthread_join()s yet. Tolerate that, but record the
+ event in test output so attentive people reading
+ logs can notice if pthread_join() stops working
+ altogether. */
+ write (STDOUT_FILENO, "!", 1);
+ continue;
+ }
char buf[100];
printf ("tf1: pthread_create failed: %s\n",