Fix: add liblttng-ust dependency to liblttng-ust-fd
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index 32ba3c1d49e2ba7bbec27ffb2f0d3f502d168653..d98fae402d28d9d2504aee517f200291777c9cd4 100644 (file)
@@ -1396,6 +1396,10 @@ restart:
                prev_connect_failed = 0;
        }
 
+       if (ust_lock()) {
+               goto quit;
+       }
+
        if (sock_info->socket != -1) {
                /* FD tracker is updated by ustcomm_close_unix_sock() */
                ret = ustcomm_close_unix_sock(sock_info->socket);
@@ -1415,9 +1419,6 @@ restart:
                sock_info->notify_socket = -1;
        }
 
-       if (ust_lock()) {
-               goto quit;
-       }
 
        /*
         * Register. We need to perform both connect and sending
@@ -1985,6 +1986,7 @@ void ust_after_fork_child(sigset_t *restore_sigset)
 {
        if (URCU_TLS(lttng_ust_nest_count))
                return;
+       lttng_context_vpid_reset();
        lttng_context_vtid_reset();
        DBG("process %d", getpid());
        /* Release urcu mutexes */
This page took 0.023439 seconds and 4 git commands to generate.