server: Make async I/O queues into real objects.
diff --git a/server/change.c b/server/change.c
index 70eb54e..c4696a0 100644
--- a/server/change.c
+++ b/server/change.c
@@ -572,7 +572,7 @@
list_add_tail( &dir->change_records, &record->entry );
}
- fd_async_terminate_head( dir->fd, ASYNC_TYPE_WAIT, STATUS_ALERTED );
+ fd_async_wake_up( dir->fd, ASYNC_TYPE_WAIT, STATUS_ALERTED );
}
static unsigned int filter_from_event( struct inotify_event *ie )
@@ -1097,7 +1097,7 @@
/* if there's already a change in the queue, send it */
if (!list_empty( &dir->change_records ))
- fd_async_terminate_head( dir->fd, ASYNC_TYPE_WAIT, STATUS_ALERTED );
+ fd_async_wake_up( dir->fd, ASYNC_TYPE_WAIT, STATUS_ALERTED );
/* setup the real notification */
if (!inotify_adjust_changes( dir ))