swap: scan /proc/swaps before processing waitid() results
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jul 2019 16:58:44 +0000 (18:58 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Wed, 7 Aug 2019 12:20:15 +0000 (14:20 +0200)
commita0c135f7771dbe3a6cd3da2aaa106900be0f4470
treef5afb8c803e5fc515f704f13c4351d4375cf13ea
parent4bc21bbc61acd1ce114da381a9742f6bcd4ffde8
swap: scan /proc/swaps before processing waitid() results

Similar to the previous commit, but for /proc/swaps, where the same
logic and rationale applies.

(cherry picked from commit bcce581d65de68cca01c73e1c890e261e72d20af)

Related: #1696178
src/core/swap.c