From: GNU Libc Maintainers Date: Tue, 23 Apr 2024 16:23:00 +0000 (+0300) Subject: local-tst-eintr1-eagain X-Git-Tag: archive/raspbian/2.28-10+rpi1+deb10u3^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5f14cf13acd4dc87b4c6da0ac06cf28d8f961538;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 4647cdb6d..e771d01e5 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",