Thank you very much Valery,
Yes, there was several user processes active at the time,
Which were depending on the daemon I tried to restart,
I will clean up the processes first next time, this is what I usually do to restart the service without bringing down the system, I just did not think any of the child processes can lock the shmem so it is impossible to remove...
Thank you again,
Originally Posted by Valery Reznic
While there is at least one process that has this shared memory segment attached there is no way to remove it.
OK it will be marked as 'deleted', and will be removed as sson as last process detach from it, but not before.
So killing hanging process (with kill -9 if needed) and ipcrm will work.
And if even kill -9 doesn't help - then your only option is reboot.