mount: simplify /proc/self/mountinfo handler
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jul 2019 12:53:07 +0000 (14:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Jul 2019 15:03:10 +0000 (17:03 +0200)
commitfcd8e119c28be19ffbc5227089cf4d3b8ba60238
treebd64ac8427703f42f156cf11651d90ce50b21950
parenta5ac2021da3ffa354c623c2f774ba9e63bbcff8e
mount: simplify /proc/self/mountinfo handler

Our IO handler is only installed for one fd, hence there's no reason to
conditionalize on it again.

Also, split out the draining into a helper function of its own.
src/core/mount.c