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

yang zhang (@yang.zhang) gitlab at rtems.org
Tue Jul 1 09:19:44 UTC 2025



yang zhang created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/546

Project:Branches: yang.zhang/rtems:fix_pthread_sigmask_err_return to rtems/rtos/rtems:main
Author:   yang zhang




## Summary

According to the Posix specification:
Upon successful completion pthread_sigmask() shall return 0;
otherwise, it shall return the corresponding error number.

So, pthread_sigmask should return errno not -1 when fail.

<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/546
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/20250701/dc4542ee/attachment.htm>


More information about the bugs mailing list