I am writing an IPC application using message queues. When using the msgget () function to get the message queue, I get this error.
The requested operations do not require much space on the device and there should be free space as well.
Any ideas. Thank you in advance
ENOSPC from msgget indicates that the system-wide maximum number of message queues has been reached.
ENOSPC
msgget
You might be able to tweak this limit - for example on Linux you can tweak /proc/sys/kernel/msgmni .
/proc/sys/kernel/msgmni