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.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
[EMAIL PROTECTED]         Usergroup           [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to