X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=faa471461c71c901b9399682ac019f0cb8fe1c13;hb=60e57148f47eb3a3116de47e23516fc5df8c968e;hp=51460d185e6c8378a87dc7c236df7ea97698ea12;hpb=7958de40dc52ee7b1bda6b74eec7f3e60fbb6591;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 51460d1..faa4714 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -1006,13 +1006,15 @@ static void __attribute__((constructor(1000))) init() return; } - inform_consumer_daemon(trace_name); - result = ltt_trace_start(trace_name); if(result < 0) { ERR("ltt_trace_start failed"); return; } + + /* Do this after the trace is started in order to avoid creating confusion + * if the trace fails to start. */ + inform_consumer_daemon(trace_name); }