Automatic clenaup of Posix Semaphores, System V alternative

119 Views Asked by At

According to my research, there is a automatic cleanup mechanism on /dev/shm directory, made by systemd, with removeipc configuration.

  1. Will systemd remove my posix semaphores (under /dev/shm) at runtime of my application even if I don't unlink them according to its removeipc feature ?
  2. I don't want to change the systemd settings. So the systemV semaphore is a good alternative for me? I don't see but is there a automatic cleanup stuff on sysV ipc objects? Or should I continue with Posix semaphores?
0

There are 0 best solutions below