projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
credentials: uid and gid now use LTTNG_OPTIONAL
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index 55e0ad3d7a28623cb6f1bdad7ccc04e289f410f8..4bdac5217978d28dd2af6c036d66f0650615a9bf 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-657,7
+657,7
@@
static int set_option(int opt, const char *arg, const char *optname)
WARN("Getting '%s' argument from setuid/setgid binary refused for security reasons.",
"-l, --load");
} else {
WARN("Getting '%s' argument from setuid/setgid binary refused for security reasons.",
"-l, --load");
} else {
- config_string_set(&config.load_session_path, strdup(arg));
+ config_string_set(&config.load_session_path, strdup(arg));
if (!config.load_session_path.value) {
PERROR("strdup");
ret = -ENOMEM;
if (!config.load_session_path.value) {
PERROR("strdup");
ret = -ENOMEM;
@@
-869,7
+869,7
@@
end:
*/
static int create_lockfile(void)
{
*/
static int create_lockfile(void)
{
-
return utils_create_lock_file(config.lock_file_path.value);
+ return utils_create_lock_file(config.lock_file_path.value);
}
/*
}
/*
@@
-1183,7
+1183,7
@@
static void set_ulimit(void)
static int write_pidfile(void)
{
static int write_pidfile(void)
{
-
return utils_create_pid_file(getpid(), config.pid_file_path.value);
+ return utils_create_pid_file(getpid(), config.pid_file_path.value);
}
static int set_clock_plugin_env(void)
}
static int set_clock_plugin_env(void)
@@
-1195,7
+1195,7
@@
static int set_clock_plugin_env(void)
goto end;
}
goto end;
}
-
ret = asprintf(&env_value, "LTTNG_UST_CLOCK_PLUGIN=%s",
+ ret = asprintf(&env_value, "LTTNG_UST_CLOCK_PLUGIN=%s",
config.lttng_ust_clock_plugin.value);
if (ret < 0) {
PERROR("asprintf");
config.lttng_ust_clock_plugin.value);
if (ret < 0) {
PERROR("asprintf");
@@
-1302,6
+1302,7
@@
int main(int argc, char **argv)
struct lttng_thread *notification_thread = NULL;
struct lttng_thread *register_apps_thread = NULL;
struct lttng_thread *notification_thread = NULL;
struct lttng_thread *register_apps_thread = NULL;
+ logger_set_thread_name("Main", false);
init_kernel_workarounds();
rcu_register_thread();
init_kernel_workarounds();
rcu_register_thread();
This page took
0.0244 seconds
and
4
git commands to generate.