Date: Thu, 23 Aug 2001 13:16:25 +0200 From: Bernd Walter <ticso@mail.cicely.de> To: freebsd-hackers@freebsd.org Subject: mmap MAP_INHERIT question. Message-ID: <20010823131625.A26135@cicely20.cicely.de>
next in thread | raw e-mail | index | archive | help
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
ticso@cicely.de Usergroup info@cosmo-project.de
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?20010823131625.A26135>
