* [Bluez-devel] Small bugfix for dund
@ 2007-02-13 18:44 Ludovic Drolez
2007-02-13 20:48 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Drolez @ 2007-02-13 18:44 UTC (permalink / raw)
To: bluez-devel
Hi !
Sometimes, dund fails with the following error:
dund[15658]: RFCOMM TTY creation failed. No such file or directory(2)
That's because, udev does not have the time to create the device.
I've found in dund's code that dund waits, at most, 30*100us for the device to
become readable. I think that the author made a typo here, and that 30*100ms is
much more appropriate (see the patch below).
Cheers,
Ludovic.
========= patch
--- bluez-utils-3.7.orig/dund/dun.c
+++ bluez-utils-3.7/dund/dun.c
@@ -213,7 +213,7 @@
if (stat(tty, &st) < 0) {
snprintf(tty, size, "/dev/rfcomm%d", id);
if (try--) {
- usleep(100);
+ usleep(100000);
continue;
}
======== end patch
-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-devel] Small bugfix for dund
2007-02-13 18:44 [Bluez-devel] Small bugfix for dund Ludovic Drolez
@ 2007-02-13 20:48 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2007-02-13 20:48 UTC (permalink / raw)
To: BlueZ development
Hi Ludovic,
> Sometimes, dund fails with the following error:
> dund[15658]: RFCOMM TTY creation failed. No such file or directory(2)
>
> That's because, udev does not have the time to create the device.
> I've found in dund's code that dund waits, at most, 30*100us for the device to
> become readable. I think that the author made a typo here, and that 30*100ms is
> much more appropriate (see the patch below).
same issue is in rfcomm/main.c. I fixed both now. Thanks.
Regards
Marcel
-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-13 20:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13 18:44 [Bluez-devel] Small bugfix for dund Ludovic Drolez
2007-02-13 20:48 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.