From: GNU Libc Maintainers Date: Mon, 16 Jan 2017 17:43:37 +0000 (+0000) Subject: local-tst-eintr1-eagain X-Git-Tag: archive/raspbian/2.25-3+rpi1~1^2^2^2^2^2^2^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a8e6f46b6665b6bd1515e5f05c10d3620eb1a9e7;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 11cd876a7..7e5853e22 100644 --- a/nptl/tst-eintr1.c +++ b/nptl/tst-eintr1.c @@ -48,6 +48,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",