OS-3282 pselect null sigmask results in EFAULT