From: GNU Libc Maintainers Date: Sat, 16 Dec 2017 14:37:43 +0000 (+0000) Subject: local-tst-eintr1-eagain X-Git-Tag: archive/raspbian/2.25-5+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=58aff52dd81a90efbe43e075ed14c2b3626eb5ca;p=glibc.git local-tst-eintr1-eagain 2012-06-06 Jonathan Nieder * nptl/tst-eintr1.c (tf1): Tolerate EAGAIN from pthread_create. Gbp-Pq: Topic any Gbp-Pq: Name local-tst-eintr1-eagain.diff --- diff --git a/nptl/tst-eintr1.c b/nptl/tst-eintr1.c index 761f8901d..a6d13d7bb 100644 --- a/nptl/tst-eintr1.c +++ b/nptl/tst-eintr1.c @@ -53,6 +53,16 @@ tf1 (void *arg) 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",