On 3/11/25 4:57 AM, Michael Cheponis wrote:
At the risk  of sounding incredibly dumb...

Why not have malloc() set some shared state variable, say malloc_initialized to true (stdbool.h) and have pthread_atfork() block until malloc_initialized becomes true.

That would deadlock the whole process.

Joerg

Reply via email to