Re: race condition in test-pthread_sigmask1?

2022-09-17 Thread Paul Eggert
On 9/17/22 16:00, Bruno Haible wrote: Any idea how we can make the test more reliable? Possibly the kernel is buggy and delivering the signal twice? If so, you can work around the bug by having the signal handler merely set the flag, rather than add 1 to it. If pid_t is wider than int,

race condition in test-pthread_sigmask1?

2022-09-17 Thread Bruno Haible
On a machine with openSUSE 15.2 (Linux 5.3.18, glibc 2.26) I see a test failure (once only, not repeatable): ../../gltests/test-pthread_sigmask1.c:78: assertion 'sigint_occurred == 1' failed FAIL test-pthread_sigmask1 (exit status: 134) It looks like the only way this can happen is when 1) the