RTEMS | Need to invalid posix message queue object id when delete mq (!364)
Gedare Bloom (@gedare)
gitlab at rtems.org
Tue Feb 4 23:13:37 UTC 2025
Gedare Bloom commented on a discussion on cpukit/posix/src/mqueuedeletesupp.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/364#note_119104
> )
> {
> if ( !the_mq->linked && the_mq->open_count == 0 ) {
> + _Objects_Invalidate_Id( &_POSIX_Message_queue_Information, &the_mq->Object );
That's a good catch. I missed that `mq_unlink` already calls `_POSIX_Message_queue_Namespace_remove` which does the right thing.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/364#note_119104
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/20250204/3abae1ff/attachment-0001.htm>
More information about the bugs
mailing list