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>
Tue, 8 Sep 2015 13:31:54 +0000 (09:31 -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 befd5a61b69c779b5d5283a3ffa6faa77e74af83..03fb38180f00d7c81a9fa013d7c1179266b45443 100644 (file)
@@ -787,7 +787,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.026112 seconds and 4 git commands to generate.