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

Use an abstract namespace UDS on Linux #7

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

woodruffw
Copy link
Contributor

Here's my attempt at #6.

The implementation carries an Option<RawFd> around with it, which corresponds to the underlying socket (if successfully acquired). I've gone ahead and implemented Drop as well, to make its semantics consistent with the other SingleInstance implementations (otherwise it would live for the entire process lifecycle, regardless of whether the "owning" object was dropped).

Let me know what you think.

@woodruffw
Copy link
Contributor Author

(CI failure looks unrelated; tests pass for me locally.)

src/lib.rs Show resolved Hide resolved
@WLBF WLBF merged commit cb162ff into WLBF:master Feb 10, 2021
@woodruffw woodruffw deleted the ww/abstract-uds-singleton branch February 10, 2021 03:48
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

Successfully merging this pull request may close these issues.

None yet

2 participants