core: systemd-shutdown: add missing check for umount_changed
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 19 Oct 2017 14:00:57 +0000 (15:00 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 19 Oct 2017 14:00:57 +0000 (15:00 +0100)
commit066b753dc5fefd0bfef92e28d3492667e2ffe22b
tree3c240bb07e2829f8bf910310d7b7946fe8f93c00
parent19a44dfe4525ab01caf593a9c2beada4b412910d
core: systemd-shutdown: add missing check for umount_changed

The assumption was that nothing changes in the final attempt.  This
would be confusing if a filesystem with a process in uninterruptible
sleep suddenly became un-stuck for the final attempt, but we still give
up and don't try to e.g. unmount any parent mounts.

I don't know how possible that is.  But the code will be easier to read
without an assumption that it does not attempt to justify.
src/core/umount.c