Current-Users archive

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

Re: Proposed pthread_atfork() internal changes



In article <cbf2b037-84e7-4504-b4b0-2a22281b2f3d%bec.de@localhost>,
Jörg Sonnenberger  <joerg%bec.de@localhost> wrote:
>
>
>On 3/10/25 6:39 AM, Robert Elz wrote:
>> pthread_atfork is called in constructors for libraries, incl
>> libc, so isn't allowed to use malloc(), which might not have
>> been initialised yet.
>
>Well, we could ensure that malloc's ctor has a higher priority...
>
>Joerg

I think that making malloc() work from constructors, would simplify
a lot of things.

christos



Home | Main Index | Thread Index | Old Index