RTEMS | Need to invalid posix message queue object id when delete mq (!364)
yang zhang (@yang.zhang)
gitlab at rtems.org
Thu Feb 6 02:55:37 UTC 2025
yang zhang commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/364#note_119188
I think that 'psxmsgq01' test case's 'validate_mq_close_error_codes' cover this situation.
In 'mq_close', when 'the_mq' is 'NULL' or 'the_mq->open_count' is 0, the return values are both -1 and errno is EBADF.
It is difficult to distinguish the two situations based on the return code, i just check them before and after 'mq_unlink'.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/364#note_119188
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/20250206/866845af/attachment-0001.htm>
More information about the bugs
mailing list