Linux bluetooth development
 help / color / mirror / Atom feed
From: Ludovic Drolez <ldrolez@debian.org>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Small bugfix for dund
Date: Tue, 13 Feb 2007 18:44:42 +0000 (UTC)	[thread overview]
Message-ID: <loom.20070213T193254-288@post.gmane.org> (raw)

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

             reply	other threads:[~2007-02-13 18:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-13 18:44 Ludovic Drolez [this message]
2007-02-13 20:48 ` [Bluez-devel] Small bugfix for dund Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20070213T193254-288@post.gmane.org \
    --to=ldrolez@debian.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox