]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-varlink: replace manual move_fd() with FORK_PACK_FDS + FORK_CLOEXEC_OFF
authorMike Yuan <me@yhndnzj.com>
Sun, 15 Feb 2026 02:45:26 +0000 (03:45 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 16 Feb 2026 08:44:56 +0000 (09:44 +0100)
commit9257690859cddb0e5a0842b2b694076986e61886
treeeeb437e55b3bb21550e60b33a29f43500cfa97f9
parent122bde2c457095cb57b2b4fedc58b133777a5787
sd-varlink: replace manual move_fd() with FORK_PACK_FDS + FORK_CLOEXEC_OFF

Note that this actually matters: we might otherwise clobber
the logging fds reopened when rearranging fd '3'.

While at it, avoid logging from library functions.
src/libsystemd/sd-varlink/sd-varlink.c