]> git.ipfire.org Git - thirdparty/systemd.git/commit
fd-util: special case invocation of close_all_fds() with single exception fd
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Oct 2021 13:53:55 +0000 (15:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Oct 2021 15:56:36 +0000 (17:56 +0200)
commitf498720a3464434e6df9bcfc54ccc8d8594ac2ff
treed7f46f0d7e168357a43f71507027b3c0db8d503f
parent11966552a88039869972ca4b450f622664bd1c5e
fd-util: special case invocation of close_all_fds() with single exception fd

Add special case optimization for a single exception fd. It's a
pretty common case in our codebase, and the optimization is simple
and means we don't need to copy/sort the exception array, so do it.
src/basic/fd-util.c