[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] [PATCH 3/3] systemd: Guard the call to sd_notify() properly
- From: Andrea Bolognani <abologna redhat com>
- To: libvir-list redhat com
- Subject: [libvirt] [PATCH 3/3] systemd: Guard the call to sd_notify() properly
- Date: Fri, 27 May 2016 14:55:08 +0200
Whether or not we call sd_notify() should depend on the
availability of the function itself, not of the library
that contains it.
---
src/util/virsystemd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
index b29418f..44409ca 100644
--- a/src/util/virsystemd.c
+++ b/src/util/virsystemd.c
@@ -480,7 +480,7 @@ int virSystemdTerminateMachine(const char *name)
void
virSystemdNotifyStartup(void)
{
-#ifdef WITH_LIBSYSTEMD
+#ifdef HAVE_SD_NOTIFY
sd_notify(0, "READY=1");
#endif
}
--
2.5.5
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]