Ticket #277 (closed defect: lackofresponse)
segfault if avahi isn't running
|Reported by:||alfille||Owned by:||lennart|
I use Avahi in owfs -- the 1-wire file viewer (www.owfs.org)
Basically I use the client_publish_service.c with minor changes for my program. It works find if the avahi deamon is running, but segfaults at aas.client = avahi_client_new(avahi_simple_poll_get(aas.poll), 0, client_callback, (void *)(&aas), &error); when the deamon is not running.
Note this is even after avahi_simple_poll_new returned a non-NULL poll handle.
I guess I need a safe way to test if the avahi deamon is running.