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

index 4bc13aebe0f257ce6d20811b4ede6efde92087ba..c1b520a7c129fc40ade32381537314a348c67d0d 100644 (file)
@@ -122,6 +122,7 @@ int register_app_to_sessiond(int socket)
                uint32_t major;
                uint32_t minor;
                pid_t pid;
+               pid_t ppid;
                uid_t uid;
                char name[16];  /* process name */
        } reg_msg;
@@ -129,6 +130,7 @@ int register_app_to_sessiond(int socket)
        reg_msg.major = LTTNG_UST_COMM_VERSION_MAJOR;
        reg_msg.minor = LTTNG_UST_COMM_VERSION_MINOR;
        reg_msg.pid = getpid();
+       reg_msg.ppid = getppid();
        reg_msg.uid = getuid();
        prctl_ret = prctl(PR_GET_NAME, (unsigned long) reg_msg.name, 0, 0, 0);
        if (prctl_ret) {
This page took 0.025606 seconds and 4 git commands to generate.