mount: simplify /proc/self/mountinfo handler
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jul 2019 12:53:07 +0000 (14:53 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Wed, 7 Aug 2019 12:20:15 +0000 (14:20 +0200)
commitdaf63a3c6c6cd241017bdf9a26c7b1caf744e69b
treedc5615463ca4a3f95694f7343a97abe78e1d723b
parent72dd8d8cd1a7417805009050f859d502b1c6cf3e
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.

(cherry picked from commit fcd8e119c28be19ffbc5227089cf4d3b8ba60238)

Conflicts:
src/core/mount.c

Related: #1696178
src/core/mount.c