Source-Changes archive

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

CVS commit: src/lib/libc/gen



Module Name:    src
Committed By:   kre
Date:           Wed Apr  9 22:10:59 UTC 2025

Modified Files:
        src/lib/libc/gen: pthread_atfork.c

Log Message:
Redo pthread_atfork to avoid malloc()

Allow as many calls to pthread_atfork() as are needed, without
ever doing a single malloc() so it can be called as much as
needed in constructors, etc.

This is the implementation mooted some weeks ago - there
were some alternative suggestions for a different solution,
but none of them have eventuated, so until something else
happens, this will do.

I have been running with this for a while now, no issues
observed, though I am not much of a user of threaded
applications, or anything that really needs constructors.

Feel free to revert (or fix) this if something breaks.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/gen/pthread_atfork.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index