eloop: fix ev_fd_update() to do nothing if the mask does not change
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 24 Oct 2012 15:00:48 +0000 (17:00 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 24 Oct 2012 15:00:48 +0000 (17:00 +0200)
commit031e9a9039ae644a9bc05e1a974bcb17fe9f1722
tree2ce007763a56f5853a46897d0e10e025b528da0a
parentb9743bb75cfb853e03dba4fad389a904b4fc40bd
eloop: fix ev_fd_update() to do nothing if the mask does not change

If the new mask is equal to the old mask, we shouldn't change anything.
This improves performance and avoids syscalls when they aren't needed.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/eloop.c