Wait for unit to stop instead of sleeping 96/168996/5
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 1 Feb 2018 14:02:34 +0000 (15:02 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 7 Feb 2018 09:07:53 +0000 (09:07 +0000)
commit69dc3ccd8952a109bb83dfdc1a57590b8eed8fe0
tree0962c48ae70ec1d34ee59eb4e09947aee609a3b9
parent52bdfe1b14ac6fac640ba5def8fac29798cb254f
Wait for unit to stop instead of sleeping

Oded asks systemd to stop certain units before unmounting /opt/usr but it
doesn't wait for confirmation. Instead it performs sleep(1).

This commit implements a mechanism that waits for unit stop confirmation from
systemd.

Change-Id: I50d4ca8d234221b8af457852548a5d9230f4ec2b
server/internal-encryption.cpp