Date: Fri, 21 Nov 1997 11:30:12 -0800 From: Curtis Bray <cbray@best.com> To: freebsd-hackers@freebsd.org Subject: malloc() problems in children after using rfork() Message-ID: <3475E143.EE7AF250@best.com>
next in thread | raw e-mail | index | archive | help
Hi, I'm trying to use rfork(RFPROC | RFMEM) so that all the children can share the same address space with their parent. If I have multiple children issuing mallocs the children seem to core dump. Once I turn the RFMEM flag off I have no problem mallocing (but of course I loose the shared address space). Anyone know what I could be doing wrong here? Do I have to put semaphores around every malloc?? I hope that's not the case... Thanks in advance! Curtis
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3475E143.EE7AF250>