]> git.meshlink.io Git - catta/blobdiff - avahi-common/simple-watch.c
* avahi-utils: replace python avahi-browse with a version written in C.
[catta] / avahi-common / simple-watch.c
index 36335215088f2f0563e5e377e496cb0044010e8d..65d9d18919ce46c6f0ceb009135d75ee6ea97ab1 100644 (file)
@@ -619,7 +619,7 @@ const AvahiPoll* avahi_simple_poll_get(AvahiSimplePoll *s) {
     return &s->api;
 }
 
-static int system_poll(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) {
+static int system_poll(struct pollfd *ufds, unsigned int nfds, int timeout, AVAHI_GCC_UNUSED void *userdata) {
     return poll(ufds, nfds, timeout);
 }
 
@@ -640,5 +640,6 @@ int avahi_simple_poll_loop(AvahiSimplePoll *s) {
     
     for (;;)
         if ((r = avahi_simple_poll_iterate(s, -1)) != 0)
-            return r;
+            if (r >= 0 || errno != EINTR)
+                return r;
 }