summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-24 22:02:05 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-25 02:33:34 +0100
commit2c93b4efeca3ccf38d604d85490b796e875e2c31 (patch)
tree70e0742b2580b37e742b8d72d9c306b0abe016eb /src/shared/util.c
parent3f95f83c548d180cddc6b9907f8d8d72ebd5abe9 (diff)
bus: implement support for FD passing
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 260c100868..03d6f00622 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -219,6 +219,8 @@ void close_nointr_nofail(int fd) {
void close_many(const int fds[], unsigned n_fd) {
unsigned i;
+ assert(fds || n_fd <= 0);
+
for (i = 0; i < n_fd; i++)
close_nointr_nofail(fds[i]);
}