POSIX queues and msg_max
linux, message-queue, posix
Solution
No.
That limit is a system-wide limit; that's why it's in `/proc/sys`. If you want to change it you will have to use the `echo` command you have already shown.
Problem
I am toying a bit with POSIX queues and I encountered a problem. When creating a new queue I can specify for example the size of the message and how many messages there can be in the queue. My normal limit is 10 as found in ``` /proc/sys/fs/mqueue/msg_max ``` is there an easy way to change it during program execution, apart from ``` echo number > /proc/sys/fs/mqueue/msg_max ``` maybe some system call for setting such things exists.