From: Jan Kiszka <jan.kiszka@domain.hid>
To: Dirk Eibach <eibach@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Resource leaking problem
Date: Fri, 08 Sep 2006 13:58:48 +0200 [thread overview]
Message-ID: <45015AF8.6070004@domain.hid> (raw)
In-Reply-To: <450157A6.80000@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]
Dirk Eibach wrote:
> Hello,
>
> we have lots of tasks, semaphores and mutexes in our complex
> application. Stopping and restarting seems to leak some resources,
> because we get ENOMEM when a thread is created after restarting the
> application, first time everything goes well.
>
> Probably we do something wrong, maybe somebody can tell us what.
What skin do you use? Native? Only the POSIX skin currently does
auto-cleanup, the others require explicit care.
>
> What do we have to do in order to clean up all resources properly,
> especially if our application is ended by SIGKILL?
Install a signal handler and do cleanup of all allocated objects (tasks
get deleted when they terminate). Either keep track of your allocated
resources in some list(s) or signal the owners (tasks) that they should
terminate and cleanup their locally allocated resources. There are
dozens of ways to do this, depending on your application design.
But if you think that you are cleaning up correctly and still face
leaks, try to derive a simple test that demonstrates the issue.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-09-08 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-08 11:44 [Xenomai-help] Resource leaking problem Dirk Eibach
2006-09-08 11:58 ` Jan Kiszka [this message]
2006-09-08 12:43 ` Gilles Chanteperdrix
[not found] ` <45015E28.7080405@domain.hid>
2006-09-08 12:59 ` (WARNING!!! PGP with incorrect signature) Re: [Xenomai-help] Res 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=45015AF8.6070004@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=eibach@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.