pthread_sigmask bug

Eric Blake eblake@redhat.com
Fri Jul 8 23:16:00 GMT 2011


The current implementation of pthread_sigmask violates POSIX:

extern "C" int
pthread_sigmask (int operation, const sigset_t *set, sigset_t *old_set)
{
  return handle_sigprocmask (operation, set, old_set, _my_tls.sigmask);
}

POSIX requires that sigprocmask returns -1 and sets errno on failure,
but that pthread_sigmask returns a positive error value on failure (and
for QoI leaves errno untouched).

http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigprocmask.html

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110708/985977f2/attachment.sig>


More information about the Cygwin mailing list