uloop: Add flag to allow callback to be called on error conditions.
authorKarl Vogel <karl.vogel@gmail.com>
Tue, 11 Feb 2014 08:37:08 +0000 (09:37 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 23 Feb 2014 17:18:32 +0000 (18:18 +0100)
commit926121113b903bf7b6133f782c84d0ed6c1a1a58
treea80504b83b97eef48ced3d819f7f3cdd3eae1063
parent43d2d349cb86a79d3d86012b101c458d344b05a4
uloop: Add flag to allow callback to be called on error conditions.

In some conditions, an application is interested in errors happening
on a file descriptor and might be able to resolve the issue in the
callback function.

This patch adds a flag to notify the uloop framework that errors
should be passed to the callback function, instead of silently
removing the fd from the polling set.

Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
uloop.c
uloop.h