varlink: support varlink communication via distinct input/output fds
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Apr 2024 16:54:07 +0000 (18:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Jun 2024 07:41:54 +0000 (09:41 +0200)
commit2ac1fb14d9d0b3014f700307f66ac3eba84ccf29
tree13ae690b6cfe7c692ccb06b88bc42c011a2f810a
parentfbdb7854a5f681fd1a981ca202e9f26651fd16b7
varlink: support varlink communication via distinct input/output fds

When invoking another process via a pair of pipes it makes sense to
allow reading from one fd, and writing from another. Teach our varlink
code to do so optionally.

(sd-bus supports something similar, fill the gap).

This is preparation for a later commit that uses this to talk to remote
SSH invocations via pipes.
src/shared/varlink.c