fiddle about a bit

This commit is contained in:
2025-04-18 19:19:50 +03:00
parent 09d5020494
commit e064818c9d
5 changed files with 29 additions and 26 deletions

View File

@@ -304,12 +304,14 @@ int file_watcher_watch(void *arg) {
event = (const struct inotify_event *)ptr;
hiFileEvent e = file_event_create(event, &ctx->context);
sc_array_add(&ctx->events, e);
if (e.type != HI_FILE_NONE) {
sc_array_add(&ctx->events, e);
if (event->len) {
sc_log_debug("Event created: queue-size: %u, %s %s\n",
sc_array_size(&ctx->events), e.pathname,
hi_file_watch_type_to_str(e.type));
if (event->len) {
sc_log_debug("Event created: queue-size: %u, %s %s\n",
sc_array_size(&ctx->events), e.pathname,
hi_file_watch_type_to_str(e.type));
}
}
}
continue; // read again without waiting