#include "utils.hpp"
#include "thread.hpp"
+namespace {
struct thread_state {
struct lttng_pipe *quit_pipe;
struct ust_cmd_queue *ust_cmd_queue;
bool running;
int application_socket;
};
+} /* namespace */
/*
* Creates the application socket.
{
int ret = 0;
int apps_sock;
- const mode_t old_umask = umask(0);
/* Create the application unix socket */
apps_sock = lttcomm_create_unix_sock(
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)) {