Created attachment 13975 [details]
UnixSignal.WaitAny standalone test program
The attached test program, when run indefinitely, often crashes with SIGPIPE. This is because of a race condition where the caller of UnixSignal.WaitAny can close the communication pipe while the underlying signal handler is writing to it. Theoretically this could impact MonoTests.Mono.Unix.UnixSignalTest.TestWaitAny but I have not yet seen this happen in testing.
I have a fix which addresses this with a spinlock, it is in review.
Resolved as of bca3964c8 in master