Add gid to registration
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Aug 2011 21:17:19 +0000 (17:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Aug 2011 21:17:19 +0000 (17:17 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libust/lttng-ust-comm.c

index c1b520a7c129fc40ade32381537314a348c67d0d..6b548f82e0dcad7ba850495d555c2b7f7a6b8dc5 100644 (file)
@@ -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");
This page took 0.024456 seconds and 4 git commands to generate.