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>
if (uevent == NULL) {
uevent = trace_ust_create_event(event);
if (uevent == NULL) {
if (uevent == NULL) {
uevent = trace_ust_create_event(event);
if (uevent == NULL) {
+ ret = LTTNG_ERR_UST_ENABLE_FAIL;
goto error;
}
/* Valid to set it after the goto error since uevent is still NULL */
goto error;
}
/* Valid to set it after the goto error since uevent is still NULL */