mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-02 13:52:35 +07:00
This patch adds UEV_ERROR handling to the test I/O watcher, restarting the watcher properly. Also, additional error handling to read(), which was unchecked and failed when fuzzing the libc read() function. We also take the opportunity to document the reasons for when using the w->fd (watcher descriptor) and when *not* to in the test. Even to the author this was confusing and looked suspicious. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>