All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Sebastian Smolorz <ssm@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] how to release file descriptor after application crash
Date: Thu, 12 Apr 2007 09:46:27 +0200	[thread overview]
Message-ID: <461DE3D3.90405@domain.hid> (raw)
In-Reply-To: <E1HbtnE-0003o2-NP@mailer.emlix.com>

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Sebastian Smolorz wrote:
> Jochen Behnke wrote:
>> Hello,
>>
>> is there any way to release a file descriptor associated with a rtdm device
>> after an application crash ? The reason I'm asking this is the following:
>> My application uses a rtdm device that can only be used in exclusive mode.
>> When the application crashes while the device was opened, I have to reboot
>> the system in order be able to use the device again. Is there a way to
>> release the file descriptor or to close the device without rebooting.
> 
> See the note to the description of rt_dev_close in the RTDM API documentation.
> (http://www.xenomai.org/documentation/trunk/html/api/group__userapi.html#ga34c1ddf4e2deb727a1ab3cd648ce5d9)
> 

For trunk, the paragraph about stalled descriptors need to be removed
(good that you referred to it). RTDM of upcoming Xenomai 2.4 performs
automatic file descriptor cleanup now.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2007-04-12  7:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-12  7:24 [Xenomai-help] how to release file descriptor after application crash Jochen Behnke
2007-04-12  7:32 ` Sebastian Smolorz
2007-04-12  7:46   ` Jan Kiszka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-04-12  9:25 Jochen Behnke

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=461DE3D3.90405@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=ssm@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.