Fix: send per-pid session id in channel creation
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index dd0f6f8db96c81fcf1e2cf643c951c725857c272..e457cae6803f2ef43491a580ab0f6501171c7494 100644 (file)
@@ -1440,6 +1440,7 @@ static void shadow_copy_session(struct ust_app_session *ua_sess,
        ua_sess->bits_per_long = app->bits_per_long;
        /* There is only one consumer object per session possible. */
        ua_sess->consumer = usess->consumer;
+       ua_sess->output_traces = usess->output_traces;
 
        switch (ua_sess->buffer_type) {
        case LTTNG_BUFFER_PER_PID:
@@ -4888,7 +4889,7 @@ int ust_app_snapshot_record(struct ltt_ust_session *usess,
                cds_lfht_for_each_entry(ua_sess->channels->ht, &chan_iter.iter,
                                ua_chan, node.node) {
                        ret = consumer_snapshot_channel(socket, ua_chan->key, output, 0,
-                                       ua_sess->euid, ua_sess->egid, wait);
+                                       ua_sess->euid, ua_sess->egid, ua_sess->path, wait);
                        if (ret < 0) {
                                goto error;
                        }
@@ -4897,7 +4898,7 @@ int ust_app_snapshot_record(struct ltt_ust_session *usess,
                registry = get_session_registry(ua_sess);
                assert(registry);
                ret = consumer_snapshot_channel(socket, registry->metadata_key, output,
-                               1, ua_sess->euid, ua_sess->egid, wait);
+                               1, ua_sess->euid, ua_sess->egid, ua_sess->path, wait);
                if (ret < 0) {
                        goto error;
                }
This page took 0.024309 seconds and 4 git commands to generate.