fiddle about a bit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user