Skip to content

Commit

Permalink
kqueue: move log before rearm to maintain order with epoll
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdenCullen committed Sep 29, 2023
1 parent 7ec57bf commit d12da21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/bsd/event_loop_kqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ int tlb_evl_handle_events(struct tlb_event_loop *loop, size_t budget, int timeou
case TLB_STATE_RUNNING:
/* Resubscribe the event */
sub->state = TLB_STATE_SUBBED;
s_kqueue_change(loop, sub, EV_ENABLE);
TLB_LOG_EVENT(sub, "Set to SUBBED");
s_kqueue_change(loop, sub, EV_ENABLE);
break;

case TLB_STATE_UNSUBBED:
Expand Down

0 comments on commit d12da21

Please sign in to comment.