lkml.org 
[lkml]   [2003]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: shmat problem
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:2.736 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site