Fix: Wrong returned error code on UST enable event
authorDavid Goulet <dgoulet@efficios.com>
Fri, 21 Sep 2012 17:07:36 +0000 (13:07 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 21 Sep 2012 17:07:36 +0000 (13:07 -0400)
(Patch backported from the master branch
95a8266405f61b6927f8cef13b1fdfa0b5584274)

Instead of sending back a FATAL error, correctly notify the user of a
failed UST enable event.

The bug261 was not reproducible anymore but led to this fix.

(Closes 261)

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

index 24dd292a4e3fdd5f86e48cf0ae11762938766694..f8255e1231eb33850eb82e15a2a60fa6c7fcd345 100644 (file)
@@ -414,7 +414,7 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, int domain,
        if (uevent == NULL) {
                uevent = trace_ust_create_event(event);
                if (uevent == NULL) {
-                       ret = LTTCOMM_FATAL;
+                       ret = LTTCOMM_UST_ENABLE_FAIL;
                        goto error;
                }
                /* Valid to set it after the goto error since uevent is still NULL */
This page took 0.027195 seconds and 4 git commands to generate.