Fix: bad logical check of error codes
authorDavid Goulet <dgoulet@efficios.com>
Tue, 3 Dec 2013 16:35:31 +0000 (11:35 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 3 Dec 2013 19:36:51 +0000 (14:36 -0500)
Fixes #701

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index 9a8a11acab6292c36c6a2350af7c4be2e22c1c10..e81028f0dd6b2c7ec9278a8822dde61e01f827c9 100644 (file)
@@ -3062,7 +3062,7 @@ int ust_app_list_events(struct lttng_event **events)
                        /* Handle ustctl error. */
                        if (ret < 0) {
                                free(tmp_event);
-                               if (ret != -LTTNG_UST_ERR_EXITING || ret != -EPIPE) {
+                               if (ret != -LTTNG_UST_ERR_EXITING && ret != -EPIPE) {
                                        ERR("UST app tp list get failed for app %d with ret %d",
                                                        app->sock, ret);
                                } else {
@@ -3162,7 +3162,7 @@ int ust_app_list_event_fields(struct lttng_event_field **fields)
                        /* Handle ustctl error. */
                        if (ret < 0) {
                                free(tmp_event);
-                               if (ret != -LTTNG_UST_ERR_EXITING || ret != -EPIPE) {
+                               if (ret != -LTTNG_UST_ERR_EXITING && ret != -EPIPE) {
                                        ERR("UST app tp list field failed for app %d with ret %d",
                                                        app->sock, ret);
                                } else {
This page took 0.028487 seconds and 4 git commands to generate.