tech-userlevel archive

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

Re: Should we use _malloc_prefork and _malloc_postfork?



On Jan 8, 12:42pm, gdt%ir.bbn.com@localhost (Greg Troxel) wrote:
-- Subject: Re: Should we use _malloc_prefork and _malloc_postfork?

| > On Jan 7, 10:38pm, gdt%ir.bbn.com@localhost (Greg Troxel) wrote:
| > -- Subject: Re: Should we use _malloc_prefork and _malloc_postfork?
| >
| > | Can you elaborate on what FreeBSD fork does?
| >
| > You can look at the source here:
| >
| > http://nxr.netbsd.org/xref/src-freebsd/lib/libthr/thread/thr_fork.c
| 
| So they call _malloc_prefork and _malloc_postfork; that seems like an
| equivalent change to what Bev proposed, and it may be better to remain
| more aligned with FreeBSD, all other things being equal.

Yes I think that overriding fork is more flexible because it makes it
easier to control what's happening and in what order rather than depending
on the pthread_at_fork() hooks.

christos


Home | Main Index | Thread Index | Old Index