From a51070bbd35a914f8bf83d774ea92c23e3e059b4 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 27 Sep 2011 14:03:12 -0400 Subject: [PATCH] Update error check for root handle Signed-off-by: Mathieu Desnoyers --- libust/lttng-ust-comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 858e92c..6bf9e2b 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; -- 2.34.1