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:58:32 UTC 2025
yang zhang commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/364#note_119189
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_119189
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/da3bbf91/attachment.htm>
More information about the bugs
mailing list