Date: Thu, 23 Aug 2001 10:13:01 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Alfred Perlstein <bright@mu.org> Cc: Bernd Walter <ticso@mail.cicely.de>, freebsd-hackers@freebsd.org Subject: Re: mmap MAP_INHERIT question. Message-ID: <Pine.BSF.4.21.0108231012330.48732-100000@InterJet.elischer.org> In-Reply-To: <20010823083711.Z81307@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
exec gives you an new vm space.. inherrit only applies to forks On Thu, 23 Aug 2001, Alfred Perlstein wrote: > * 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 > 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?Pine.BSF.4.21.0108231012330.48732-100000>