summaryrefslogtreecommitdiff
path: root/src/shared/fdset.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-22 15:22:45 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-22 18:11:27 +0100
commite4077ff6f3e6755a9858f2c10441121b37b7c766 (patch)
treec246d7cd1793283ccd4f59022274579515256373 /src/shared/fdset.h
parent094eecd29d350e178107cfd786b2a80f4f0c0c3a (diff)
downloadsystemd-e4077ff6f3e6755a9858f2c10441121b37b7c766.tar.gz
nspawn: don't free "fds" twice
Previously both run() and run_container() would free 'fds'. Let's fix that, and let run() free it but make run_container() already remove all fds from it, because that's what we actually want to do. Fixes: #12073
Diffstat (limited to 'src/shared/fdset.h')
-rw-r--r--src/shared/fdset.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/fdset.h b/src/shared/fdset.h
index d31062b5c6..bdf1377038 100644
--- a/src/shared/fdset.h
+++ b/src/shared/fdset.h
@@ -33,6 +33,8 @@ int fdset_iterate(FDSet *s, Iterator *i);
int fdset_steal_first(FDSet *fds);
+void fdset_close(FDSet *fds);
+
#define FDSET_FOREACH(fd, fds, i) \
for ((i) = ITERATOR_FIRST, (fd) = fdset_iterate((fds), &(i)); (fd) >= 0; (fd) = fdset_iterate((fds), &(i)))