From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <461DE3D3.90405@domain.hid> Date: Thu, 12 Apr 2007 09:46:27 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <489168738@domain.hid> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD84D914B3FEB7E6B6332CE50" Sender: jan.kiszka@domain.hid Subject: Re: [Xenomai-help] how to release file descriptor after application crash List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Smolorz Cc: xenomai@xenomai.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD84D914B3FEB7E6B6332CE50 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Sebastian Smolorz wrote: > Jochen Behnke wrote: >> Hello, >> >> is there any way to release a file descriptor associated with a rtdm d= evice >> after an application crash ? The reason I'm asking this is the followi= ng: >> My application uses a rtdm device that can only be used in exclusive m= ode. >> When the application crashes while the device was opened, I have to re= boot >> 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. >=20 > See the note to the description of rt_dev_close in the RTDM API documen= tation. > (http://www.xenomai.org/documentation/trunk/html/api/group__userapi.htm= l#ga34c1ddf4e2deb727a1ab3cd648ce5d9) >=20 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 --------------enigD84D914B3FEB7E6B6332CE50 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGHePZniDOoMHTA+kRAqyrAJ4306I2pHdqdA7xGDz4Y97/JqtA4wCeKEO8 Pc+p9l2vPE/l9Lv2VExPyCg= =fttp -----END PGP SIGNATURE----- --------------enigD84D914B3FEB7E6B6332CE50--