From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Jellinghaus Date: Tue, 14 Nov 2006 16:04:47 +0000 Subject: Re: problem with a specific ACTION=="remove" udev rule Message-Id: <4559E91F.1010502@ciphirelabs.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Ludovic Rousseau wrote: > So I guess I have no solution other than to be called for every USB > device removed? if you have an open file handle to the device, simply use poll or select and it will return an error. note: with recent kernels this is fine. with early 2.6 kernels, you only get the error once the timeout is reached, and if you don't have a timeout, select/poll never return at all. thats why I use poll with one second timeouts in openct. Andreas ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel