title: Shared memory addresses
body: <p>I am using C on Linux, and allocating 2 shared memory segments.</p>
  
  <p>The first segment is created in a main program, then I call a subprocess and create the second segment. </p>
  
  <p>In the subprocess, I place the address of the second segment in a pointer I set aside in the first segment.</p>
  
  <p>Upon returning to the main program, when I attach to the second segment and compare the pointers (the one returned from shmat, and the one previously stored by the subprocess) I find they are different.</p>
  
  <p>Is this expected?</p>
  
  <p>Thanks, Mark.</p>