This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_sigmask bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]