🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.wizards
1 messages
1 total messages Started by Dawson R. Engler Mon, 11 Jan 1993 04:58
mmap() question
#6992
Author: Dawson R. Engler
Date: Mon, 11 Jan 1993 04:58
17 lines
980 bytes
Is it possible to mmap() shared memory *after* a fork() occurs?
The trouble with the man pages I've seen on mmap() is that
they imply all mappings must occur before fork().  An obvious problem
with this is that if I run out of shared memory and need more, using
mmap() to replenish may be difficult.

Do I have to pass open file descriptors between children if I want to
do this?  (ie. process A needs more memory, it opens a file, maps it
and then sends the file descriptor to process B, who will in turn will
map)

A simple, portable solution would be ideal. (what a surprise...;)

Regards,
	Dawson
	engler@cs.arizona.edu
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads