mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdaemon: shutdown on idle also in non-systemd environment
This commit is contained in:
parent
100daa7fd8
commit
cdb7ce6f17
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user