statbar icon indicating copy to clipboard operation
statbar copied to clipboard

shared mem cleanup

Open pzl opened this issue 8 years ago • 1 comments

Sometimes, on crashes, /dev/shm/statbar is left behind, and not appropriately detected as "dead" on next run. Client will hang waiting for data

pzl avatar Aug 02 '17 13:08 pzl

I read here that

if the key is removed (via the shm_unlink(2) system call), the object persists until all handles are destroyed.

It sounds like after server and client have connected over the SHM, we might be able to immediately unlink it, and the conn will stay around until the program dies (or crashes). This might prevent other clients from opening it, if it's been unlinked (though possibly not, if it's not been cleaned up yet?). Testing is needed

pzl avatar Aug 02 '17 13:08 pzl