I create 4 child process and communicate between by a message queue for a couple. I successes to do that bur after a couple of execution it gives error "Cannot allocate memory". I guess it is caused by not deleting the existing queues properly. Do i need to close or unlink in each child process execution before end of the program or it is enough to close them in the parent process. OR is there any way to close - unlink these on the command line (shell) with some commands. Any suggestions! I need to restart the system as a solution but it takes time of course.
Thanks for help!!