Skip to content

tests: Don’t assert for SA_NOCLDSTOP for non-SIGCHLD signals

Philip Withnall requested to merge wip/pwithnall/3314-unix-nocldstop into main

SA_NOCLDSTOP is “meaningful only when establishing a handler for SIGCHLD” according to sigaction(2), so asserting that it’s set for all signals seems like a bad plan. In particular, it causes this unit test to fail on macOS.

Indeed, kern.c in macOS only sets SA_NOCLDSTOP if the signal is SIGCHLD.

Thanks to John Ralls for confirmation with the diagnosis.

Signed-off-by: Philip Withnall pwithnall@gnome.org

Fixes: #3314 (closed)

Merge request reports