Reputation: 24870
On linux, wrote a simple program to create a POSIX message queue, and send a msg to it, after the process terminated, it seems the msg is still there.
The questions are:
Upvotes: 4
Views: 1741
Reputation: 17455
No it doesn't exist after reboot, since it resides on a virtual filesystem.
Upvotes: 3
Reputation: 93466
On Linux, message queues are mounted on a virtual file system, and the presence of a file does not imply that anything is written to physical media. This implementation is specific to Linux and not required POSIX behaviour.
The mq_overview man page describes the implementation.
Upvotes: 6