title: Shared Memory sysv_ipc Python
body: <p>I am using shared memory (sysv_ipc) between two different process and I want to see the last update time of the shared memory in another code. There are three programs, one writes to the shared memory, another reads from the shared memory, and the third one I need for external error handling, so I like to know if the shared memory is not updated for the last few minutes. With this idea, I tried accessing the attribute &quot;last_attach_time&quot; of the shared memory. It works fine when I ran it in the terminal. That is I created the object for shared memory once in the terminal and then I tried accessing the attribute continuously and it worked completely fine. Until the shared memory was written with data, the &quot;last_attach_time&quot; updated the time, and when writing stopped the output became constant and this is perfectly fine. But when I included in the external error handling code which has a while loop for continuous monitoring, the attribute is not giving correct data. ie, the time is still increasing even after writing to the shared memory is stopped. Has anyone faced similar issues?
  Thanks.</p>