3 ms·
The problem with that is that a library can't count on pthreads: the application might call clone directly, without going through the libc wrapper, which calls
by taejo 12y ago
The problem with that is that a library can't count on pthreads: the application might call clone directly, without going through the libc wrapper, which calls the atfork callbacks.
- JoshTriplett 12y agoVery good point; pthread_atfork does not suffice. Thanks for the correction.