watcher: Avoid logging on level 1 while holding the mutex

This could be problematic in case loggers in some way rely on watcher_t
themselves.  This particular log message should rarely occur if at all,
but still avoid holding the mutex.
This commit is contained in:
Tobias Brunner
2023-04-27 13:45:32 +02:00
parent 2cb6d144a6
commit 7c657e78ff
2 changed files with 23 additions and 13 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ typedef enum watcher_state_t watcher_state_t;
* re-enable the event, while the data read can be processed in another
* asynchronous job.
*
* On Linux, even if select() marks an FD as "ready", a subsequent read/write
* On Linux, even if poll() marks an FD as "ready", a subsequent read/write
* can block. It is therefore highly recommended to use non-blocking I/O
* and handle EAGAIN/EWOULDBLOCK gracefully.
*
@@ -71,7 +71,7 @@ enum watcher_state_t {
};
/**
* Watch multiple file descriptors using select().
* Watch multiple file descriptors using poll().
*/
struct watcher_t {