From: Mathieu Desnoyers Date: Tue, 27 Sep 2011 18:03:12 +0000 (-0400) Subject: Update error check for root handle X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=a51070bbd35a914f8bf83d774ea92c23e3e059b4;hp=959ad2f13fd45eb91c8f69f34618895f44e3bc18;p=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 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;