[PATCH v2 5/7] linux: Remove SIGCANCEL/SIGSETXID handling on sigprocmask

Florian Weimer fweimer@redhat.com
Thu Dec 12 12:54:00 GMT 2019


* Adhemerval Zanella:

> The sigfillset already does it, and this is the canonical way to operate
> on sigset_t.  The only way to actually broke this assumption is if caller
> initialize sigset with memset or something similar, i.e, bypassing glibc
> (and again this is not a valid construction).

Is you argument that sigfillset already does this, and there is no way
to compute the complement of a signal set, so the bits for
SIGCANCEL and SIGSETXID can never become set?

I think it's possible to set them directly using sigaddset.  I don't see
why using SIGCANCEL/SIGSETXID with that function would be undefined.

Thanks,
Florian



More information about the Libc-alpha mailing list