diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-06-29 02:13:39 (GMT) |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2011-07-01 16:51:49 (GMT) |
commit | bb188d7e64deb0e9cf13a99f44ae0065de5352d6 (patch) | |
tree | 3425b09bf6217ef4b59e82cec150d2af1ec16f9f /fs/xfs/xfs_quota.h | |
parent | 479bf98c1c29b40d86e40a4e6e4944c2f03d9493 (diff) | |
download | linux-fsl-qoriq-bb188d7e64deb0e9cf13a99f44ae0065de5352d6.tar.xz |
ptrace: make former thread ID available via PTRACE_GETEVENTMSG after PTRACE_EVENT_EXEC stop
When multithreaded program execs under ptrace,
all traced threads report WIFEXITED status, except for
thread group leader and the thread which execs.
Unless tracer tracks thread group relationship between tracees,
which is a nontrivial task, it will not detect that
execed thread no longer exists.
This patch allows tracer to figure out which thread
performed this exec, by requesting PTRACE_GETEVENTMSG
in PTRACE_EVENT_EXEC stop.
Another, samller problem which is solved by this patch
is that tracer now can figure out which of the several
concurrent execs in multithreaded program succeeded.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_quota.h')
0 files changed, 0 insertions, 0 deletions