]> git.meshlink.io Git - catta/commitdiff
add some mo0re wakeups
authorLennart Poettering <lennart@poettering.net>
Wed, 14 Sep 2005 00:03:14 +0000 (00:03 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Sep 2005 00:03:14 +0000 (00:03 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@579 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-common/simple-watch.c

index 2b1e6c51f61de7fd03fb754abe83c0e8b71c9851..68723896f2c79de846749d592efb00a1e81fcab8 100644 (file)
@@ -530,10 +530,11 @@ int avahi_simple_poll_iterate(AvahiSimplePoll *s, int timeout) {
     return 0;
 }
 
-void avahi_simple_poll_quit(AvahiSimplePoll *w) {
-    assert(w);
+void avahi_simple_poll_quit(AvahiSimplePoll *s) {
+    assert(s);
 
-    w->quit = 1;
+    s->quit = 1;
+    wakeup(s);
 }
 
 const AvahiPoll* avahi_simple_poll_get(AvahiSimplePoll *s) {
@@ -546,4 +547,5 @@ void avahi_simple_poll_set_func(AvahiSimplePoll *s, AvahiPollFunc func) {
     assert(s);
 
     s->poll_func = func ? func : (AvahiPollFunc) poll;
+    wakeup(s);
 }