From 4539df01941b46f707bd8ccf9d54ff6f288cae70 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 13 Feb 2007 20:41:55 +0000 Subject: Wait 30 * 100ms for udev to create the device node --- dund/dun.c | 2 +- rfcomm/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dund/dun.c b/dund/dun.c index 0f801932..67e60213 100644 --- a/dund/dun.c +++ b/dund/dun.c @@ -213,7 +213,7 @@ static int dun_create_tty(int sk, char *tty, int size) if (stat(tty, &st) < 0) { snprintf(tty, size, "/dev/rfcomm%d", id); if (try--) { - usleep(100); + usleep(100 * 1000); continue; } diff --git a/rfcomm/main.c b/rfcomm/main.c index 304c7134..b66bcdce 100644 --- a/rfcomm/main.c +++ b/rfcomm/main.c @@ -397,7 +397,7 @@ static void cmd_connect(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **arg if ((fd = open(devname, O_RDONLY | O_NOCTTY)) < 0) { if (try--) { snprintf(devname, MAXPATHLEN - 1, "/dev/rfcomm%d", dev); - usleep(100); + usleep(100 * 1000); continue; } perror("Can't open RFCOMM device"); -- cgit