intercept_hook_point_clone_child() is called only when the child thread is created by pthread_create(), but not with fork(), although both GLIBC's fork() and pthread_create() with NPTL uses the same system call, clone().
[ Tested Environment ]
Ubuntu 24.04 / 6.8.0-35-generic x86_64 GNU/Linux (from official Ubuntu repository) / GLIBC 2.39-0ubuntu8.2 (also)
intercept_hook_point_clone_child()is called only when the child thread is created bypthread_create(), but not withfork(), although both GLIBC'sfork()andpthread_create()with NPTL uses the same system call,clone().[ Tested Environment ]
Ubuntu 24.04 / 6.8.0-35-generic x86_64 GNU/Linux (from official Ubuntu repository) / GLIBC 2.39-0ubuntu8.2 (also)