From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org, Jan Kiszka <jan.kiszka@domain.hid>
Subject: Re: AW: [Xenomai-help] delete queues "offline"; /proc/stat
Date: Thu, 06 Jul 2006 14:11:08 +0200 [thread overview]
Message-ID: <1152187868.4978.49.camel@domain.hid> (raw)
In-Reply-To: <17580.64278.6862.15230@domain.hid>
On Thu, 2006-07-06 at 13:59 +0200, Gilles Chanteperdrix wrote:
> 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.
I agree with this interpretation. Think of some application "loader"
process that just creates the basic infrastructure, like shared mem
segs, then exits, leaving the actual use of such resources to some other
processes. I did see this a few times in customer designs.
>
> 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.
>
--
Philippe.
next prev parent reply other threads:[~2006-07-06 12:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-06 10:09 AW: [Xenomai-help] delete queues "offline"; /proc/stat Roderik_Wildenburg
2006-07-06 11:17 ` Jan Kiszka
2006-07-06 11:22 ` Gilles Chanteperdrix
2006-07-06 11:29 ` Jan Kiszka
2006-07-06 11:59 ` Gilles Chanteperdrix
2006-07-06 12:11 ` Philippe Gerum [this message]
2006-07-06 12:11 ` Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1152187868.4978.49.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.