]> git.ipfire.org Git - thirdparty/systemd.git/commit
util: introduce {send,receive}_one_fd()
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 22 Sep 2015 12:09:54 +0000 (14:09 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 22 Sep 2015 12:09:54 +0000 (14:09 +0200)
commitd960371482d75711e61896f27ea0d3740ea69fe0
tree6e7ffbd22d6dfb9ed71976e11999abcb93c31e9d
parent8e112c803cb9b1ab1d564d0e5a7f06af59a2a30a
util: introduce {send,receive}_one_fd()

Introduce two new helpers that send/receive a single fd via a unix
transport. Also make nspawn use them instead of hard-coding it.

Based on a patch by Krzesimir Nowak.
src/basic/util.c
src/basic/util.h
src/nspawn/nspawn-expose-ports.c
src/nspawn/nspawn.c