| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4E178FD6.5010101@redhat.com> |
| Date: | Fri, 08 Jul 2011 17:16:38 -0600 |
| From: | Eric Blake <eblake AT redhat DOT com> |
| User-Agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 |
| MIME-Version: | 1.0 |
| To: | cygwin <cygwin AT cygwin DOT com> |
| Subject: | pthread_sigmask bug |
| OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------enig14F1D5DA7492503227817BE4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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
--=20
Eric Blake eblake AT redhat DOT com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
--------------enig14F1D5DA7492503227817BE4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBCAAGBQJOF4/WAAoJEKeha0olJ0Nqgm0H/jBwELl+h5Cko7kms1YIfJ5b
fUGdG3e1NA0WmkpAnsUDx2FVyWMo67L3UNhafaAmvny3l1Dr+Ub/obDssGqZokig
IWQcfV9XRCEA/DrL7jgMbJh8AHiAfL9UC3sqjdVmethKHFwoEETVL8Z4+hyQujSa
3VOSih7M3VzjpT6lBBmKTF1wsnHm5LeAp84BGLomIt5zc36nnpYJ2iw1gcdJXBQm
AHMjPJ6svU1U/Ptc8ylbiP3d+j971Llr93DH635DwsfqixgRWeGdMmm3z3mcGsTo
nGfTFFpAj+JwnoOMLAb1UWtou6iKybk0XxRuTGsC3kxFZv8UCJC6hg/KDf4nlqw=
=LR0+
-----END PGP SIGNATURE-----
--------------enig14F1D5DA7492503227817BE4--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |