[avahi] avahi_threaded_poll_start strange behaviour

Gaspard Bucher gaspard at teti.ch
Wed May 13 03:31:08 PDT 2009


As I understand "avahi_threaded_poll_start", the new thread should be
running if the return value is 0.

What I get:

return value = 0
threaded_poll->thread_running = 0

But the thread is in fact running since the service registration works
and I see the thread in gdb.

Reading the source code in thread-watch.c, this seems impossible...

I discovered the problem because "avahi_threaded_poll_stop" would
return -1 and the poll thread would keep on running.

Any clue ? C++ related ?

Gaspard


More information about the avahi mailing list