projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: agent port file is o+w when launching as root
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
register.cpp
diff --git
a/src/bin/lttng-sessiond/register.cpp
b/src/bin/lttng-sessiond/register.cpp
index aac16b183cfb3aae0f6b6519e4b946cbf6bfe289..34efeac40f57729fd0811806e56cb7665847fefc 100644
(file)
--- a/
src/bin/lttng-sessiond/register.cpp
+++ b/
src/bin/lttng-sessiond/register.cpp
@@
-24,6
+24,7
@@
#include "utils.hpp"
#include "thread.hpp"
#include "utils.hpp"
#include "thread.hpp"
+namespace {
struct thread_state {
struct lttng_pipe *quit_pipe;
struct ust_cmd_queue *ust_cmd_queue;
struct thread_state {
struct lttng_pipe *quit_pipe;
struct ust_cmd_queue *ust_cmd_queue;
@@
-31,6
+32,7
@@
struct thread_state {
bool running;
int application_socket;
};
bool running;
int application_socket;
};
+} /* namespace */
/*
* Creates the application socket.
/*
* Creates the application socket.
@@
-39,7
+41,6
@@
static int create_application_socket(void)
{
int ret = 0;
int apps_sock;
{
int ret = 0;
int apps_sock;
- const mode_t old_umask = umask(0);
/* Create the application unix socket */
apps_sock = lttcomm_create_unix_sock(
/* Create the application unix socket */
apps_sock = lttcomm_create_unix_sock(
@@
-72,7
+73,6
@@
static int create_application_socket(void)
DBG3("Session daemon application socket created (fd = %d) ", apps_sock);
ret = apps_sock;
end:
DBG3("Session daemon application socket created (fd = %d) ", apps_sock);
ret = apps_sock;
end:
- umask(old_umask);
return ret;
error_close_socket:
if (close(apps_sock)) {
return ret;
error_close_socket:
if (close(apps_sock)) {
This page took
0.023977 seconds
and
4
git commands to generate.