- /* rotation_thread_data acquires the pipes' read side. */
- rotation_thread_handle =
- rotation_thread_handle_create(rotation_timer_queue, the_notification_thread_handle);
- if (!rotation_thread_handle) {
+ try {
+ the_rotation_thread_handle =
+ lttng::make_unique<lttng::sessiond::rotation_thread>(
+ *rotation_timer_queue, *the_notification_thread_handle);
+ } catch (const std::exception& e) {