From: Mathieu Desnoyers Date: Thu, 25 Aug 2011 21:17:19 +0000 (-0400) Subject: Add gid to registration X-Git-Tag: v1.9.1~250 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=83610856fc8fea9e25911b0ca9345970cc39ff17;p=lttng-ust.git Add gid to registration Signed-off-by: Mathieu Desnoyers --- 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");