home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / wizards / 5401 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  955 b 

  1. Path: sparky!uunet!cs.utexas.edu!asuvax!ncar!noao!arizona!cs.arizona.edu
  2. From: engler@cs.arizona.edu (Dawson R. Engler)
  3. Newsgroups: comp.unix.wizards
  4. Subject: mmap() question
  5. Message-ID: <29523@optima.cs.arizona.edu>
  6. Date: 11 Jan 93 04:58:35 GMT
  7. Sender: news@cs.arizona.edu
  8. Organization: U of Arizona CS Dept, Tucson
  9. Lines: 19
  10.  
  11.  
  12. Is it possible to mmap() shared memory *after* a fork() occurs?
  13. The trouble with the man pages I've seen on mmap() is that
  14. they imply all mappings must occur before fork().  An obvious problem
  15. with this is that if I run out of shared memory and need more, using
  16. mmap() to replenish may be difficult.
  17.  
  18. Do I have to pass open file descriptors between children if I want to
  19. do this?  (ie. process A needs more memory, it opens a file, maps it
  20. and then sends the file descriptor to process B, who will in turn will
  21. map)
  22.  
  23. A simple, portable solution would be ideal. (what a surprise...;)
  24.  
  25. Regards,
  26.     Dawson
  27.     engler@cs.arizona.edu
  28.  
  29.  
  30.