Semaphore issue
Alexander Bartolich
alexander.bartolich at gmx.at
Thu Sep 29 21:57:05 UTC 2011
Julien ÉLIE wrote:
> Isn't there a possibility to automatically destroy unused semaphores?
The designers of System V IPC considered resource leakage to be a feature.
POSIX semaphores are much nicer. The Linux manual page of sem_destroy has
this to say:
# An unnamed semaphore should be destroyed with sem_destroy() before
# the memory in which it is located is deallocated. Failure to do this
# can result in resource leaks on some implementations.
Ciao
Alexander.
More information about the inn-workers
mailing list