Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 8 Oct 2001 17:53:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 8 Oct 2001 17:53:35 -0400 Received: from t2.redhat.com ([199.183.24.243]:58608 "EHLO passion.cambridge.redhat.com") by vger.kernel.org with ESMTP id ; Mon, 8 Oct 2001 17:53:29 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 From: David Woodhouse X-Accept-Language: en_GB In-Reply-To: In-Reply-To: To: Alan Cox Cc: dmccr@us.ibm.com (Dave McCracken), torvalds@transmeta.com (Linus Torvalds), linux-kernel@vger.kernel.org (Linux Kernel) Subject: Re: [PATCH] Provide system call to get task id Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 08 Oct 2001 22:53:41 +0100 Message-ID: <12421.1002578021@redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/