From 83610856fc8fea9e25911b0ca9345970cc39ff17 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 25 Aug 2011 17:17:19 -0400 Subject: [PATCH] Add gid to registration Signed-off-by: Mathieu Desnoyers --- libust/lttng-ust-comm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index c1b520a7..6b548f82 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -124,6 +124,7 @@ int register_app_to_sessiond(int socket) pid_t pid; pid_t ppid; uid_t uid; + gid_t gid; char name[16]; /* process name */ } reg_msg; @@ -132,6 +133,7 @@ int register_app_to_sessiond(int socket) reg_msg.pid = getpid(); reg_msg.ppid = getppid(); reg_msg.uid = getuid(); + reg_msg.gid = getgid(); prctl_ret = prctl(PR_GET_NAME, (unsigned long) reg_msg.name, 0, 0, 0); if (prctl_ret) { ERR("Error executing prctl"); -- 2.34.1