Avoid having to destroy and create a new GSource every time we change event mask. Interfaces required for this patch are available since GLib 2.36 and are specific to Unix. On Windows use old implementation.
6c1e2c41 event loop: improve implementation of watches for Unix systems
server/event-loop.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 82 insertions(+), 12 deletions(-)