]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: immediately close pipes when we determined we have no data for them
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Jul 2020 13:17:22 +0000 (15:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Aug 2020 20:26:48 +0000 (22:26 +0200)
commit37e44c3f95088ba0bd175cae9ae575f130d85948
treea506667a684680adca3fa42469348bcd170fb316
parentf5ea63a5e17e18f1c22c901e0e48601e091ec859
dissect: immediately close pipes when we determined we have no data for them

This effectively makes little difference because we exit soon later
anyway, which will close the fds, too. However, it's still useful since
it means the parent will get EOF events on them in the order we process
things and isn't delayed to process the data from the pipes until the
child dies.
src/dissect/dissect.c
src/shared/dissect-image.c