home *** CD-ROM | disk | FTP | other *** search
- 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
- From: limes@ouroborous.Eng.Sun.COM (Greg Limes)
- Newsgroups: comp.lang.c
- Subject: Re: "fork"/"vfork" on the SUN
- Date: 25 Jul 1992 01:39:22 GMT
- Organization: Sun Microsystems, Inc.
- Lines: 6
- Message-ID: <l71c6aINNho4@appserv.Eng.Sun.COM>
- References: <1992Jul24.205152.25492@exu.ericsson.se>
- NNTP-Posting-Host: ouroborous
-
- In article <1992Jul24.205152.25492@exu.ericsson.se> exujuyu@exu.ericsson.se (Junwen Yuan) writes:
- >Is there any other easy way, other than "vfork()", to let a forked
- >child share the same data object as its parent?
-
- Yes. Put the object in shared memory, by mapping the memory from a file
- and using the MAP_SHARE flag. See the documentation on "mmap".
-