I have multiple processes communicating using a semaphore.
sem_open("\name",O_CREATE,S_IRWXU|S_IRWXG,10);
I have 2 questions w.r.t following:
Now, when one process dies suddenly without calling sem_close or sem_unlink. What happens to the remaining processes ?
If sem_close() is called, however sem_unlink() is not called for 1 process. All the other processes, call sem_close() and sem_unlink(). Does the semaphore still exists, after all the processes exit ?