From: GNU Libc Maintainers Date: Mon, 30 Dec 2019 18:12:42 +0000 (+0000) Subject: local-tst-eintr1-eagain X-Git-Tag: archive/raspbian/2.29-7+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=46306acf39d129b7f8f364db259e3706fb920e7b;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 8134f0aff..53c4904de 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",