- ret = notification_thread_command_unregister_trigger(
- notification_thread_handle, session->rotate_trigger);
+ ret = lttng_write(rotate_notification_channel_subscription_change_eventfd,
+ &eventfd_increment_value,
+ sizeof(eventfd_increment_value));
+ if (ret != sizeof(eventfd_increment_value)) {
+ PERROR("Failed to wake up rotation thread as writing to the rotation thread notification channel subscription change eventfd failed");
+ ret = -1;
+ goto end;
+ }
+
+ ret = notification_thread_command_unregister_trigger(notification_thread_handle,
+ session->rotate_trigger);