[Bug tapsets/20075] target_set_pid() returns False when execve() syscall is successful

fche at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jul 18 20:44:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=20075

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wcohen at redhat dot com

--- Comment #4 from Frank Ch. Eigler <fche at redhat dot com> ---
wcohen drafted similar function:

function child_of_target:long (t:long)
{
  if (!target()) return 1
  while(t && t != task_parent(t)) {
    if (task_pid(t) == target()) return 1
    t = task_parent(t)
  }
  return 0
}


Maybe this implementation can take the place of the current one, or vice versa?
Consider also disowned processes (that are reparented to ppid=1) somehow.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list