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:

1. Now, when one process dies suddenly without calling sem\_close or sem\_unlink. What happens to the remaining processes ?
2. 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 ?