I\'m working on a program which uses shared memory. Multiple instances of said program will either connect to an existing one or create it anew, and give it back to OS when
Combined with shared memory, robust mutexes located in the shared memory segment would be a great tool. If a process dies while holding a lock on a robust mutex, the next process to attempt locking it will get EOWNERDEAD and can perform the cleanup the original owner should have performed.