On Wed, 16 Nov 2005 17:12:52 +0100, Duncan Sands <[EMAIL PROTECTED]> wrote:

> With the speedtouch USB modems, the problem people usually see is:

> (C) at some point the modem spontaneously disconnects and reconnects
> (surprisingly common with some motherboards).  pppd takes several seconds
> to understand that ATM device 0 has died; until it understands this, it
> keeps a connection open, which means that the ATM device hangs around.
> The "new" modem (= old one reconnected) creates a new ATM device, which
> is given device number 1, because number 0 is still being used by the
> old device.

The scenario is clear.

You know what I personally would do it occured to my code? I would work
to create proper orphan mode for opened instances. Then, new device
would get assigned number 0, even if someone had device 0 still open.
The internal structures for the old "device 0" would have been kept
alive by a (counted) reference from the top side as zombies, to
disappear when eventually closed.

It may be too much work for you, your call. It's easier to suggest
than to implement properly (without leaking or other bugs).

-- Pete


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to