mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
sigprocmask and _sigprocmask threw std::invalid_argument for a how other than SIG_BLOCK, SIG_UNBLOCK or SIG_SETMASK, which ends the title. FreeBSD returns -1 with EINVAL and leaves the old mask uncopied, and ignores how when set is null; pthread_sigmask here already returns EINVAL. The check now comes first, before the previous mask is written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>