[Bash-completion-devel] Bug#551780: Fix by reading from avahi-browse with a timeout

Crestez Dan Leonard cdleonard at gmail.com
Sun Mar 21 22:46:14 UTC 2010


I attached a possible fix for this. It will timeout if avahi-browse
doesn't respond in 250 miliseconds. This seems reasonable; if the answer
takes longer than that it's not useful for interactive use. This will
still work for people who care about avahi.

This seems more like a big in avahi or avahi's configuration in debian,
but I don't really care about why avahi takes a long time to answer. I
believe it's reasonable for bash-completion to include workarounds for
bugs in other programs. It's useful for the shell to work reliably even
if the system is otherwise misconfigured.

It seems that bash-completion debian bug mail also goes to the
bash-completion-devel upstream list. Patch is against latest upstream,
any feedback is welcome.

I had to mangle +o posix to get tests to pass. I don't know why the test
suite puts the shell into posix mode anyway.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avahi-fix.diff
Type: text/x-patch
Size: 3067 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20100322/f44da73a/attachment.bin>


More information about the Bash-completion-devel mailing list