Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposed pthread_atfork() internal changes



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


Home | Main Index | Thread Index | Old Index