Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
pid_t pid;
pid_t ppid;
uid_t uid;
pid_t pid;
pid_t ppid;
uid_t uid;
char name[16]; /* process name */
} reg_msg;
char name[16]; /* process name */
} reg_msg;
reg_msg.pid = getpid();
reg_msg.ppid = getppid();
reg_msg.uid = getuid();
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");
prctl_ret = prctl(PR_GET_NAME, (unsigned long) reg_msg.name, 0, 0, 0);
if (prctl_ret) {
ERR("Error executing prctl");