From: Mathieu Desnoyers Date: Tue, 27 Sep 2011 18:03:12 +0000 (-0400) Subject: Update error check for root handle X-Git-Tag: v1.9.1~176 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a51070bbd35a914f8bf83d774ea92c23e3e059b4;p=lttng-ust.git Update error check for root handle Signed-off-by: Mathieu Desnoyers --- 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;