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

Wrap sd_listen_fds #6

Closed
daurnimator opened this issue May 4, 2016 · 2 comments
Closed

Wrap sd_listen_fds #6

daurnimator opened this issue May 4, 2016 · 2 comments

Comments

@daurnimator
Copy link
Owner

Requested by @Zash

@Zash
Copy link

Zash commented May 4, 2016

Internally, sd_listen_fds() checks whether the $LISTEN_PID environment variable equals the daemon PID. If not, it returns immediately.

That, and being able to unset that variable, is what it does over os.getenv().

Exposing SD_LISTEN_FDS_START would also be good, so you don't have to guess that it's 3.

@daurnimator
Copy link
Owner Author

Exposing SD_LISTEN_FDS_START would also be good, so you don't have to guess that it's 3.

It already is. systemd.daemon.LISTEN_FDS_START

daurnimator added a commit that referenced this issue May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants