patch-2.3.51 linux/fs/proc/array.c

Next file: linux/fs/proc/inode.c
Previous file: linux/fs/openpromfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -151,12 +151,13 @@
 		"State:\t%s\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"
 		"FDSize:\t%d\n"
 		"Groups:\t",
 		get_task_state(p),
-		p->pid, p->p_pptr->pid,
+		p->pid, p->p_opptr->pid, p->p_pptr->pid != p->p_opptr->pid ? p->p_opptr->pid : 0,
 		p->uid, p->euid, p->suid, p->fsuid,
 		p->gid, p->egid, p->sgid, p->fsgid,
 		p->files ? p->files->max_fds : 0);
@@ -327,7 +328,7 @@
 		task->pid,
 		task->comm,
 		state,
-		task->p_pptr->pid,
+		task->p_opptr->pid,
 		task->pgrp,
 		task->session,
 	        task->tty ? kdev_t_to_nr(task->tty->device) : 0,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)