shared/daemon-util: fix notify_on_cleanup()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 15 Oct 2020 17:22:21 +0000 (19:22 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Oct 2020 13:23:37 +0000 (15:23 +0200)
commit297fc20dc469694f054ed2be4358eb21efe89660
tree5fad0b29fa3206c5849e01c6ba1b5e65a6da8a2b
parente9f4a596a20a7198d7fbafeec52e95259c704d87
shared/daemon-util: fix notify_on_cleanup()

p itself is never null. Because of this, we would always
call sd_notify() in cleanup, even though the intention was to only
call it if notify_start() was executed.
src/shared/daemon-util.h