Fix: arguments in the wrong order for fd-limit
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index a70ecda4cd04494e62f266698257a28910944ac7..3b45c339b4b524f910108e3ecb2bff81ffc1d1a1 100644 (file)
@@ -1535,7 +1535,7 @@ static void *thread_dispatch_ust_registration(void *data)
                                        if (ret < 0) {
                                                PERROR("close ust sock dispatch %d", ust_cmd->sock);
                                        }
-                                       lttng_fd_put(1, LTTNG_FD_APPS);
+                                       lttng_fd_put(LTTNG_FD_APPS, 1);
                                        free(ust_cmd);
                                        goto error;
                                }
@@ -1549,7 +1549,7 @@ static void *thread_dispatch_ust_registration(void *data)
                                        if (ret < 0) {
                                                PERROR("close ust sock dispatch %d", ust_cmd->sock);
                                        }
-                                       lttng_fd_put(1, LTTNG_FD_APPS);
+                                       lttng_fd_put(LTTNG_FD_APPS, 1);
                                        free(wait_node);
                                        free(ust_cmd);
                                        continue;
@@ -1597,7 +1597,7 @@ static void *thread_dispatch_ust_registration(void *data)
                                        if (ret < 0) {
                                                PERROR("close ust sock dispatch %d", ust_cmd->sock);
                                        }
-                                       lttng_fd_put(1, LTTNG_FD_APPS);
+                                       lttng_fd_put(LTTNG_FD_APPS, 1);
                                }
                                free(ust_cmd);
                        }
@@ -1802,9 +1802,9 @@ static void *thread_registration_apps(void *data)
                                         * parameter.
                                         */
                                        (void) lttcomm_setsockopt_rcv_timeout(sock,
-                                                       app_socket_timeout * 1000);
+                                                       app_socket_timeout);
                                        (void) lttcomm_setsockopt_snd_timeout(sock,
-                                                       app_socket_timeout * 1000);
+                                                       app_socket_timeout);
 
                                        /*
                                         * Set the CLOEXEC flag. Return code is useless because
This page took 0.025414 seconds and 4 git commands to generate.