]> sourceware.org Git - lvm2.git/commitdiff
libdaemon: shutdown on idle also in non-systemd environment
authorOndrej Kozina <okozina@redhat.com>
Tue, 12 May 2015 07:37:19 +0000 (09:37 +0200)
committerOndrej Kozina <okozina@redhat.com>
Tue, 12 May 2015 15:16:24 +0000 (17:16 +0200)
WHATS_NEW
libdaemon/server/daemon-server.c

index d724a1b8dd1a3b2011d72ebddc19454817bd7bfa..e1674e21fc4a7a92c01122db9f7ea425ec8d4c23 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.120 -
 ===============================
+  Daemons (libdaemon) support exit on idle also in non-systemd environment.
   Provide make dist and make rpm targets
   Configure lvm.conf for use_lvmetad and use_lvmpolld.
   Add lvpoll for cmdline communication with lvmpolld.
index 1869956febb33e0204be0dd04f81e5c8b092d73d..5b1aff1c55a8d8baa8b6a64082679cadef68ff84 100644 (file)
@@ -82,12 +82,12 @@ static void _exit_handler(int sig __attribute__((unused)))
 
 static int _is_idle(daemon_state s)
 {
-       return _systemd_activation && s.idle && s.idle->is_idle && !s.threads->next;
+       return s.idle && s.idle->is_idle && !s.threads->next;
 }
 
 static struct timeval *_get_timeout(daemon_state s)
 {
-       return (_systemd_activation && s.idle) ? s.idle->ptimeout : NULL;
+       return s.idle ? s.idle->ptimeout : NULL;
 }
 
 static void _reset_timeout(daemon_state s)
This page took 0.040766 seconds and 5 git commands to generate.