X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Flttng-ust-comm.c;h=6bf9e2b5b350ebb2936507a054a1236c578f9b7c;hb=a51070bbd35a914f8bf83d774ea92c23e3e059b4;hp=858e92c9b513c3bfb79a844e37d1cc315c1b968b;hpb=824f40b81426c6ac82685251018dae00947786a9;p=lttng-ust.git diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 858e92c9..6bf9e2b5 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -641,7 +641,7 @@ restart: */ if (sock_info->root_handle == -1) { ret = lttng_abi_create_root_handle(); - if (ret) { + if (ret < 0) { ERR("Error creating root handle"); ust_unlock(); goto quit;