Fix: Invalid parameter error reported when untracking PID
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 4 Sep 2015 21:34:44 +0000 (17:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 4 Sep 2015 22:43:43 +0000 (18:43 -0400)
The LTTng client reports an "Invalid parameter" error if a PID is
untracked from the userspace domain before any PID is tracked in that
domain.

Fixes #931

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.c

index b70d63673fd8ed9d275d39066a39be3dc2c04380..9ec6e43b0baa8bae6c8d4602cd94743148787977 100644 (file)
@@ -788,7 +788,8 @@ int trace_ust_untrack_pid(struct ltt_ust_session *session, int pid)
                struct ust_app *app;
 
                if (!session->pid_tracker.ht) {
-                       retval = LTTNG_ERR_INVALID;
+                       /* No PID being tracked. */
+                       retval = LTTNG_ERR_PID_NOT_TRACKED;
                        goto end;
                }
                /* Remove PID from tracker */
This page took 0.026325 seconds and 4 git commands to generate.