this question has answer here:
whenever message read message queue, message deleted kernel.
- is possible read same message twice?
- how can read same message twice in same process or in 2 different processes?
you can't read twice queue, reading without removing called peeking , cannot peek in posix queue. read mq_overview(7).
you should design software avoid having read twice same data queue (e.g. adding appropriate buffering, perhaps serialized or locked mutex).
Comments
Post a Comment