Re: [Bluez-devel] rfcomm bind : Address already in use

Marcel Holtmann
2004-07-12T18:26:10Z

Hi Tetsuo,

> >you should have mentioned that, because dund creates a /dev/rfcommX
> >device node for starting PPP. Maybe there is a leftover, which leaves
> >the DLC open and so the session can't be terminated. Maybe a running
> >pppd holds the socket descriptor open.
> >
> >But I won't have time to look into that in detail. If you provide me a
> >patch for dund or for the kernel RFCOMM part, I will review it.
> >
>
> I tried to make patch for this.

sorry to say that, but that is not the solution. Implementing some kind
of garbage collection is not ok. This is the Linux kernel, if you think
that this is a bug, find it and fix it. And don't work around it.

Btw you forgot the locking while iteration along the socket list.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net