]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/import/importd.c
shared: introduce cmsg_close_all() call
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Feb 2015 18:20:47 +0000 (19:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Feb 2015 18:42:24 +0000 (19:42 +0100)
commit1c8da044469acabcfc479ba3276954da53210830
treea9252d87c59570ebec4f3004526e6f52637bb917
parent6e646d22f6f9215de5ccb5e5edf450558c59fed1
shared: introduce cmsg_close_all() call

The call iterates through cmsg list and closes all fds passed via
SCM_RIGHTS.

This patch also ensures the call is used wherever appropriate, where we
might get spurious fds sent and we should better close them, then leave
them lying around.
src/import/importd.c
src/shared/ask-password-api.c
src/shared/util.c
src/shared/util.h
src/shutdownd/shutdownd.c
src/udev/udev-ctrl.c