X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-commands.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-commands.cpp;h=2f275477b133e9c488d21beb38cdccbe6e516e6f;hp=ee0eb76b47b66712f9c95af5718a79f3a9d1b32c;hb=11927a7859022cf38a4153767cc96fda4987070d;hpb=21b65d7fb06219571f42159b3667454c3104a8b7 diff --git a/src/bin/lttng-sessiond/notification-thread-commands.cpp b/src/bin/lttng-sessiond/notification-thread-commands.cpp index ee0eb76b4..2f275477b 100644 --- a/src/bin/lttng-sessiond/notification-thread-commands.cpp +++ b/src/bin/lttng-sessiond/notification-thread-commands.cpp @@ -48,7 +48,8 @@ static int run_command_wait(struct notification_thread_handle *handle, } pthread_mutex_unlock(&handle->cmd_queue.lock); - command_completion_waiter.wait();; + command_completion_waiter.wait(); + ; return 0; error_unlock_queue: pthread_mutex_unlock(&handle->cmd_queue.lock); @@ -62,7 +63,7 @@ notification_thread_command_copy(const struct notification_thread_command *origi try { new_cmd = new notification_thread_command; - } catch (const std::bad_alloc &e) { + } catch (const std::bad_alloc& e) { ERR("Failed to allocate notification_thread_command: %s", e.what()); return nullptr; }