From: Daniel Jacobowitz <dan@debian.org>
To: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: [trivial] Print tracer PID in /proc/<pid>/status
Date: Fri, 6 Sep 2002 10:36:36 -0400 [thread overview]
Message-ID: <20020906143636.GA10509@nevyn.them.org> (raw)
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
reply other threads:[~2002-09-06 14:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020906143636.GA10509@nevyn.them.org \
--to=dan@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox