strace patch to only trace threads with -f.
ActivePublic

Authored by werner on Thu, Jun 6, 5:07 PM.
1--- strace.c.orig 2019-06-06 17:04:21.271016482 +0200
2+++ strace.c 2019-06-06 17:04:32.371221549 +0200
3@@ -1795,9 +1795,9 @@
4}
5
6if (followfork)
7- ptrace_setoptions |= PTRACE_O_TRACECLONE |
8- PTRACE_O_TRACEFORK |
9- PTRACE_O_TRACEVFORK;
10+ ptrace_setoptions |= PTRACE_O_TRACECLONE;
11+
12+
13debug_msg("ptrace_setoptions = %#x", ptrace_setoptions);
14test_ptrace_seize();

If it is that simple I really do not understand why this is not upstream. o.O

werner added a comment.Thu, Jun 6, 8:19 PM

It might have unwanted side-effects - I am not sure. Anyway for me it works.