[PATCH 3/3] systemd: Guard the call to sd_notify() properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]