Commit dee18fe9 authored by David Calavera's avatar David Calavera

Update get_ppid comment.

Signed-off-by: default avatarDavid Calavera <david.calavera@gmail.com>
parent 020bcd4d
...@@ -188,8 +188,9 @@ start_ts = time.time() ...@@ -188,8 +188,9 @@ start_ts = time.time()
argv = defaultdict(list) argv = defaultdict(list)
# TODO: This is best-effort PPID matching. Short-lived processes may exit # TODO: This is best-effort PPID matching. Short-lived processes may exit
# before we get a chance to read the PPID. This should be replaced with # before we get a chance to read the PPID.
# fetching PPID via C when available (#364). # This is a fallback for when fetching the PPID from task->real_parent->tgip
# returns 0, which happens in some kernel versions.
def get_ppid(pid): def get_ppid(pid):
try: try:
with open("/proc/%d/status" % pid) as status: with open("/proc/%d/status" % pid) as status:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment