summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-09-14 00:03:14 +0000
committerLennart Poettering <lennart@poettering.net>2005-09-14 00:03:14 +0000
commit4a10eaeee609b84972ef2b2d0a0fab8a3664891a (patch)
treed0bc131f56e352e0f040e3e7dd1ae89062956814 /avahi-common
parent3b19a26c9d2f7924a0c84dd682aa51e4495f249f (diff)
add some mo0re wakeups
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@579 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/simple-watch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/avahi-common/simple-watch.c b/avahi-common/simple-watch.c
index 2b1e6c5..6872389 100644
--- a/avahi-common/simple-watch.c
+++ b/avahi-common/simple-watch.c
@@ -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);
}