home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11581 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  805 b 

  1. Path: sparky!uunet!sun-barr!west.West.Sun.COM!news2me.ebay.sun.com!exodus.Eng.Sun.COM!appserv.Eng.Sun.COM!ouroborous.Eng.Sun.COM!limes
  2. From: limes@ouroborous.Eng.Sun.COM (Greg Limes)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: "fork"/"vfork" on the SUN
  5. Date: 25 Jul 1992 01:39:22 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 6
  8. Message-ID: <l71c6aINNho4@appserv.Eng.Sun.COM>
  9. References: <1992Jul24.205152.25492@exu.ericsson.se>
  10. NNTP-Posting-Host: ouroborous
  11.  
  12. In article <1992Jul24.205152.25492@exu.ericsson.se> exujuyu@exu.ericsson.se (Junwen Yuan) writes:
  13. >Is there any other easy way, other than "vfork()", to let a forked
  14. >child share the same data object as its parent?
  15.  
  16. Yes. Put the object in shared memory, by mapping the memory from a file
  17. and using the MAP_SHARE flag. See the documentation on "mmap".
  18.