bus: implement support for FD passing

This commit is contained in:
Lennart Poettering
2013-03-25 02:33:34 +01:00
parent 3f95f83c54
commit 2c93b4efec
8 changed files with 291 additions and 44 deletions
+2
View File
@@ -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]);
}