diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-03-26 11:57:08 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-03-26 13:08:52 +0100 |
commit | 07ff03d6b2facc41b99521ef9382b8092f1df95e (patch) | |
tree | bfc0d5bdfb429f332788681f3b821acafc61c5dd /src/core/service.c | |
parent | core/service: remove redundant Unit.type check (diff) | |
download | systemd-07ff03d6b2facc41b99521ef9382b8092f1df95e.tar.xz systemd-07ff03d6b2facc41b99521ef9382b8092f1df95e.zip |
core/execute: check if EXEC_PASS_FDS is set if got exec_params.fds
Prompted by #31789 (specifically
https://github.com/systemd/systemd/pull/31789#discussion_r1525267612)
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/service.c b/src/core/service.c index ba71f97474..be38ec73d8 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1681,6 +1681,8 @@ static int service_spawn_internal( exec_params.open_files = s->open_files; + exec_params.flags |= EXEC_PASS_FDS; + log_unit_debug(UNIT(s), "Passing %zu fds to service", exec_params.n_socket_fds + exec_params.n_storage_fds); } |