Jan Kiszka wrote: > > Yes, all resources specific to a process are deleted automatically, so, > > any message queue descriptor or shared memory descriptor is > > closed. Named objects are not deleted though, since they may be shared > > between several processes, only non-pshared anonymous objects and named > > objects *descriptors* are deleted. This is the only reasonable > > implementation I could find. > > What about a usage counter maintained on creation/binding vs. > closing/destruction? I would prefer to get them cleaned up automatically > as well somehow, or we really need tool support for IPC cleanup, and > that is ugly in my eyes.
I am not sure one would expect a named object to be unlinked when one only calls its "close" service, without calling its "unlink" service. If, on the other hand, one calls the "unlink" service, then the object will be automatically destroyed when the last descriptor is closed, as mandated by the specification. Moreover, the existence of such objects is not a leak that will grow over time, if one do not use the O_EXCL flag when opening objects, existing objects will simply be reused. If one use the O_EXCL flag, opening will fail. This behaviour is the same as Linux behaviour. -- Gilles Chanteperdrix. _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help