Skip to content

Added support for sd_listen_fds_with_names()#60

Closed
MarcelWaldvogel wants to merge 4 commits intosystemd:masterfrom
MarcelWaldvogel:sd-listen-fds-with-names
Closed

Added support for sd_listen_fds_with_names()#60
MarcelWaldvogel wants to merge 4 commits intosystemd:masterfrom
MarcelWaldvogel:sd-listen-fds-with-names

Conversation

@MarcelWaldvogel
Copy link
Contributor

The internal API (system._daemon._listen_fds_with_names) returns a tuple consisting of the count followed by the strings, closely modelling the C API without creating any unnecessary Python objects.

The external API (systemd.daemon.listen_fds_with_names) returns a dict of fd: name pairs. This occurred to me as being most in line with the existing Python API for listen_fds.

@keszybz
Copy link
Member

keszybz commented Jun 16, 2019

Merged as b1608da. Thanks.

@keszybz keszybz closed this Jun 16, 2019
@dkg dkg mentioned this pull request Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants