Messages in this thread | | | From | "Dirk Bull" <> | Subject | Re: shmat problem | Date | Tue, 07 Jan 2003 08:14:17 +0000 |
| |
Thanks for your help. I also thought the memory mapping code I'm porting looked funny. The code forms part of a simulation program where a few processes have to share data in a data base. In the code they(the original implementers) initialize a bunch of variables and then share these variables as I've shown you. I've referenced W.R Stevens's UNIX programming books and found no information on whether you could share memory other than that on the heap (did not want to change their code to use pointers, not a good idea to change too much of the original code). To end a long story, Alex, thanks for the SHM_REMAP flag, would never have found it, you've saved me a lot of time. Finally, in the code they share pages, therefor using SHM_REMAP is not that unsafe, but still not good practice?
Thanks again.
Dirk
_________________________________________________________________ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |