utrace: Use PTHREAD_SEIZE instead of PTHREAD_TRACEME
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 12 Sep 2017 11:12:41 +0000 (13:12 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 28 Sep 2017 06:26:56 +0000 (08:26 +0200)
commit2661b2f7c1944c3fab1fba420e81fae1349644d3
tree2b5321eb28d05b2a31f62eba74aea163d5f9b3bc
parentb5d53c6c683ee73b5d494b5d0750d1deca7b749f
utrace: Use PTHREAD_SEIZE instead of PTHREAD_TRACEME

This makes it easier to handle initial ptrace-stops (after
fork/clone/...), because we don't need to distinguish whether SIGSTOP
is from user or from ptrace. Also execve() does not deliver an extra
SIGTRAP, which we would have to handle.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
trace/preload.c
trace/trace.c