On Thu, Nov 01, 2007 at 02:25:00AM +0100, Alain Kalker wrote: > Package: bluez-utils > Version: 3.13-1 > Severity: normal > > > When executing "sudo /etc/init.d/bluetooth restart", pand fails to > register a service with the SDP server. Stopping bluetooth > and then restarting it after a reasonable pause does work. > Enabling debug output and examining /var/log/syslog shows that pand > tries to register the service before hcid has had the chance to > start the SDP server, making this a nice example of a race condition. > > I don't know what the best fix for this would be. In my opinion, hcid > should not daemonize before the SDP server is up. Adding a 'sleep 2' > between stopping and restarting the daemons would be a quick fix, but > reliability of this will depend too much on system load and performance.
this is indeed racy, the newer version of bluez-utils ought to fix that by including all the services in the main executable. filippo -- Filippo Giunchedi - http://esaurito.net PGP key: 0x6B79D401 random quote follows: Date: Tuesday, 2002/10/22 - 08:09 dselect proves the existence of Satan. It's the worst part of Debian. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]