Error message should only appear when return value is negative
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Aug 2011 15:57:14 +0000 (11:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Aug 2011 15:57:14 +0000 (11:57 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libust/lttng-ust-comm.c

index 41d1280c8fe901dcf506ae608758b71789c2499c..40fe4bb8469dbf447ace072b6289c8fa7e97f845 100644 (file)
@@ -249,7 +249,7 @@ restart:
                case sizeof(lum):
                        DBG("message received\n");
                        ret = handle_message(sock, &lum);
-                       if (ret) {
+                       if (ret < 0) {
                                ERR("Error handling message\n");
                        }
                        continue;
This page took 0.025873 seconds and 4 git commands to generate.