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 listen-fd crate #10

Open
yoshuawuyts opened this issue Jul 13, 2018 · 1 comment
Open

use listen-fd crate #10

yoshuawuyts opened this issue Jul 13, 2018 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@yoshuawuyts
Copy link
Collaborator

https://github.com/mitsuhiko/rust-listenfd

Apparently some bookkeeping is required to correctly use the Systemd LISTEN_FD sockets. It might be useful for our .bind() and .bind_or() methods to make use of this.

@yoshuawuyts yoshuawuyts added bug Something isn't working enhancement New feature or request labels Jul 13, 2018
@yoshuawuyts
Copy link
Collaborator Author

Looks like our current implementation is broken tbh. We should be listenening for both LISTEN_FDS and SYSTEMFD_SOCKET_SERVER

Perhaps a conditional compile would work best here?

I'm thinking we should detect if either value is set, and then let rust-listenfd handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant