diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-16 22:31:39 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-16 22:31:39 +0200 |
commit | c48f30ca53695faa09683fc8f506463c07f9c2c3 (patch) | |
tree | 80577fb4299ef6e91339be3412b9dbfd432e445a /cfgdir.c | |
parent | bf3df84cdfbdb0da776d8fb2af9fa2cf53eec985 (diff) |
Fixup remaining missed cases of debugging
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; |