diff options
Diffstat (limited to 'cfgdir.c')
-rw-r--r-- | cfgdir.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -352,15 +352,13 @@ inotify_cb(struct cfg *cfg, struct uring_task *task, int res) char *ptr; struct server *scfg; - fprintf(stderr, "%s: ret is %i (ref %u)\n", __func__, res, task->refcount); - if (task->dead) { - fprintf(stderr, "%s: task is dead\n", __func__); + debug(DBG_CFG, "task is dead\n"); return; } if (res <= 0) - perrordie("inotify_read"); + perrordie("inotify_read (%i)", res); for (ptr = iev->buf; ptr < iev->buf + res; ptr += sizeof(struct inotify_event) + event->len) { event = (const struct inotify_event *)ptr; |