linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.27k stars 1k forks source link

sigtimedwait01,sigwaitinfo01 infinite loop (timeout) on musl #1090

Open richiejp opened 9 months ago

richiejp commented 9 months ago

The test calls sigtimedwait with an empty set. Then sends SIGUSR1 to the waiting process. This causes the sigtimedwait syscall to return with EINTR, but musl helpfully restarts the system call. So we just loop inside libc.