Date: Thu, 23 Aug 2001 08:37:11 -0500 From: Alfred Perlstein <bright@mu.org> To: Bernd Walter <ticso@mail.cicely.de> Cc: freebsd-hackers@freebsd.org Subject: Re: mmap MAP_INHERIT question. Message-ID: <20010823083711.Z81307@elvis.mu.org> In-Reply-To: <20010823131625.A26135@cicely20.cicely.de>; from ticso@mail.cicely.de on Thu, Aug 23, 2001 at 01:16:25PM %2B0200 References: <20010823131625.A26135@cicely20.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
* Bernd Walter <ticso@mail.cicely.de> [010823 06:16] wrote: > I do the following: > buf = (char*)mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE, > MAP_ANON | MAP_INHERIT | MAP_SHARED, -1, 0); > > Now I vfork/execve a child. > But the child can't access the mmaped memory. > It was my understanding that MAP_INHERIT | MAP_SHARED keep the memory > over the execve. Without sample code this is impossible to explain. -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010823083711.Z81307>