[Sugar-devel] Distance broken due to socket already existing

Daniel Drake dsd at laptop.org
Fri Nov 20 09:08:42 EST 2009

Hi Ben,

Distance isn't working on anything newer than Sugar-0.82 because the
instance directory is no longer cleaned out between activity runs. I
presume rainbow did this before, but we don't have that at the moment.

So, bind() on your unix socket always fails (except for the very first
time you run it) because the file already exists.

Patch attached. Any chance of a new release?


p.s. a less pressing issue is that sometimes the XO that you'd be
expecting to be listening for the hiss stops listening (you can see the
mic light goes off). Eventually it times out, tells you that you are
several hundred meters apart, then it continues as usual (quickly
returning back to realistic distance figures).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-socket-if-it-already-exists.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20091120/24dafa7f/attachment.bin 

More information about the Sugar-devel mailing list