Greg K-H wrote:
> >> Userspace still has the port open, so the number is not reused until
> >> userspace closes the device node.  Fix your userspace programs to
> >> properly listen to the hangup signal to know to release the device
> >node
> >> and you should be fine.
> >
> >There's still a bit of a race condition here, isn't there?
> >
> >Is there any good way to deal with that?
> 
> What race condition are you seeing here?

USB cable is unplugged
 Process is sent SIGHUP
USB cable is quickly replugged
 Process closes port


//Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to