MAP_INHERIT is broken and always has been.
-Matt
:exec gives you an new vm space..
:inherrit only applies to forks
:
:
:On Thu, 23 Aug 2001, Alfred Perlstein wrote:
:
:> * Bernd Walter <[EMAIL PROTECTED]> [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 [[EMAIL PROTECTED]]
:> Ok, who wrote this damn function called '??'?
:> And why do my programs keep crashing in it?
:>
:> To Unsubscribe: send mail to [EMAIL PROTECTED]
:> with "unsubscribe freebsd-hackers" in the body of the message
:>
:
:
:To Unsubscribe: send mail to [EMAIL PROTECTED]
:with "unsubscribe freebsd-hackers" in the body of the message
:
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message