This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: pthread_sigmask bug
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 9 Jul 2011 08:58:55 +0200
- Subject: Re: pthread_sigmask bug
- References: <4E178FD6.5010101@redhat.com>
- Reply-to: cygwin at cygwin dot com
On Jul 8 17:16, Eric Blake wrote:
> 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
PTC?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple