public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [trivial] Print tracer PID in /proc/<pid>/status
@ 2002-09-06 14:36 Daniel Jacobowitz
  0 siblings, 0 replies; only message in thread
From: Daniel Jacobowitz @ 2002-09-06 14:36 UTC (permalink / raw)
  To: torvalds, linux-kernel

We've got a labeled field for showing which process is debugging this one,
but we weren't filling it in.  This is useful in working on the ptrace
code... please apply.

===== array.c 1.26 vs edited =====
--- 1.26/fs/proc/array.c	Wed Jul 24 21:36:09 2002
+++ edited/array.c	Thu Sep  5 16:38:35 2002
@@ -160,7 +160,8 @@
 		"Uid:\t%d\t%d\t%d\t%d\n"
 		"Gid:\t%d\t%d\t%d\t%d\n",
 		get_task_state(p), p->tgid,
-		p->pid, p->pid ? p->real_parent->pid : 0, 0,
+		p->pid, p->pid ? p->real_parent->pid : 0,
+		p->pid && p->ptrace ? p->parent->pid : 0,
 		p->uid, p->euid, p->suid, p->fsuid,
 		p->gid, p->egid, p->sgid, p->fsgid);
 	read_unlock(&tasklist_lock);	


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-06 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 14:36 [trivial] Print tracer PID in /proc/<pid>/status Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox