RTEMS | pthread_sigmask should return error number when fail (!546)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Jul 16 15:47:26 UTC 2025




Joel Sherrill started a new discussion on cpukit/posix/src/sigprocmask.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/546#note_126635

 >     */
 >  
 >  #if defined(RTEMS_POSIX_API)
 > -  return pthread_sigmask( how, set, oset );
 > +  return pthread_sigmask( how, set, oset ) ? -1 : 0;

Please try to avoid the inline comparison.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/546#note_126635
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250716/020d2f73/attachment.htm>


More information about the bugs mailing list