Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared mem cleanup #9

Open
pzl opened this issue Aug 2, 2017 · 1 comment
Open

shared mem cleanup #9

pzl opened this issue Aug 2, 2017 · 1 comment

Comments

@pzl
Copy link
Owner

pzl commented Aug 2, 2017

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
Copy link
Owner Author

pzl commented Aug 2, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant