* init.cfg (trap_sigpipe_or_skip_): A subshell with ignored SIGPIPE
was seen to not terminate, on Solaris 11 at least.
So protect with a timeout(1).
trap_sigpipe_or_skip_()
{
- (trap '' PIPE && yes | :) 2>&1 | grep -F 'Broken pipe' >/dev/null ||
+ timeout --version >/dev/null ||
+ skip_ 'trapping SIGPIPE cannot be safely checked'
+
+ (trap '' PIPE && timeout 10 yes |:) 2>&1 | grep 'Broken pipe' >/dev/null ||
skip_ 'trapping SIGPIPE is not supported'
}