HomeFreeBSD

According to Linux man sigaltstack(3) shall return EINVAL if the ss

Description

According to Linux man sigaltstack(3) shall return EINVAL if the ss
argument is not a null pointer, and the ss_flags member pointed to by ss
contains flags other than SS_DISABLE. However, in fact, Linux also
allows SS_ONSTACK flag which is simply ignored.

For buggy apps (at least mono) ignore other than SS_DISABLE
flags as a Linux do.

While here move MI part of sigaltstack code to the appropriate place.

Reported by: abi at abinet dot ru

Details

Provenance
dchaginAuthored on
Parents
rS283470: Add EPOLLERR flag handling to epoll.
Branches
Unknown
Tags
Unknown