Add -ust to the name of UST threads of the application
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index e00a22ce4cae66dd7161111ba5de342dea7267b5..6105403a25d032b618df9c6202644ff138a0a034 100644 (file)
@@ -1295,6 +1295,15 @@ void *ust_listener_thread(void *arg)
        int sock, ret, prev_connect_failed = 0, has_waited = 0;
        long timeout;
 
+       /*
+        * If available, add '-ust' to the end of this thread's
+        * process name
+        */
+       ret = lttng_ust_setustprocname();
+       if (ret) {
+               ERR("Unable to set UST process name");
+       }
+
        /* Restart trying to connect to the session daemon */
 restart:
        if (prev_connect_failed) {
This page took 0.024165 seconds and 4 git commands to generate.