core/service: use array rather than list for extra fds, limit max number
authorMike Yuan <me@yhndnzj.com>
Tue, 8 Oct 2024 12:53:14 +0000 (14:53 +0200)
committerMike Yuan <me@yhndnzj.com>
Fri, 11 Oct 2024 16:22:19 +0000 (18:22 +0200)
commit32af4dd80fd0ce8ae1c30b3b8ee915b7a97cfb33
treed99cf25bdd4c42030b02f4f546e69a8a38f4948b
parent6286f213f5cf985e105a385d0b16d4ebe2866171
core/service: use array rather than list for extra fds, limit max number

Follow-up for 3543456f84ec2e83e07b6c9bf2b3a1c5d30241d8

I don't think list is particularly useful here. The passed fds are
constant for the lifetime of service, and with this commit we track
the number of extra fds in a dedicated var anyway.
src/core/dbus-service.c
src/core/service.c
src/core/service.h