mainloop: handle more gracefully if fd is closed before delete_io_watch.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 30 Apr 2012 12:38:57 +0000 (15:38 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 2 May 2012 15:52:02 +0000 (18:52 +0300)
commit9cdd909d44f5cb5ddaac02fdbc12222a1b75f4fe
treeccd2ab3912f392c332bf148339b1899edce78a31
parent586c5e976b3abbbb09a9a08c3748628bbd6bc9c5
mainloop: handle more gracefully if fd is closed before delete_io_watch.

EPOLL_CTL_DEL sets errno to ENOENT if w->fd is closed (by the user)
after mrp_del_io_watch is called but before delete_io_watch gets around
to purge the watch and update our epoll bookkeeping. Don't treat this as
an error and avoid printing an error message.
src/common/mainloop.c