eellak / build-recorder

GNU Lesser General Public License v2.1
25 stars 8 forks source link

Handle PTRACE_EVENT_* events for child processes/threads. #224

Open fvalasiad opened 2 months ago

fvalasiad commented 2 months ago

While we so far support clone(2), fork(2), vfork(2), there are other variants we don't. In my testing I found a case where gcc utilized clone3(2), resulting in build-recorder not recording the process creation step.

This commit follows a second approach utilizing the signals ptrace(2) delivers to inform the tracer of a new process or thread.