Messages in this thread Patch in this message |  | | From | David Woodhouse <> | Subject | Re: [PATCH] Provide system call to get task id | Date | Mon, 08 Oct 2001 22:53:41 +0100 |
| |
While we're at it, we should probably be exporting the tgid from /proc/$pid/status.
Index: fs/proc/array.c =================================================================== RCS file: /inst/cvs/linux/fs/proc/array.c,v retrieving revision 1.5.2.32 diff -u -r1.5.2.32 array.c --- fs/proc/array.c 2001/08/07 08:10:59 1.5.2.32 +++ fs/proc/array.c 2001/10/08 21:52:30 @@ -151,12 +151,13 @@ read_lock(&tasklist_lock); buffer += sprintf(buffer, "State:\t%s\n" + "Tgid:\t%d\n" "Pid:\t%d\n" "PPid:\t%d\n" "TracerPid:\t%d\n" "Uid:\t%d\t%d\t%d\t%d\n" "Gid:\t%d\t%d\t%d\t%d\n", - get_task_state(p), + get_task_state(p), p->tgid, p->pid, p->pid ? p->p_opptr->pid : 0, 0, p->uid, p->euid, p->suid, p->fsuid, p->gid, p->egid, p->sgid, p->fsgid); -- dwmw2
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |