1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/daemons
Zdenek Kabelac 9940c2f754 dmeventd: schedule exit on break
When dmeventd receives SIGTERM/INT/HUP/QUIT it validates if exit is possible.
If there was any device still monitored, such exit request used to
be ignored/refused. This 'usually' worked reasonably well, however if there
is very short time period between last device is unmonitored and signal
reception - there was possibility such EXIT was ignored, as dmeventd has
not yet got into idle state even commands like 'vgchange -an' has already
finished.

This patch changes logic towards scheduling EXIT to the nearest
point when there is no monitored device.

EXIT is never forgotten.

NOTE: if there is only a single monitored device and someone sends
SIGTERM and later someone uses i.e. 'lvchange --refresh' after
unmonitoring dmeventd will exit and new instance needs to be
started.
2017-10-05 10:19:21 +02:00
..
clvmd deamonize: restore detection of errors 2017-09-06 11:47:53 +02:00
cmirrord makefiles: fixing linking 2017-08-01 11:53:30 +02:00
dmeventd dmeventd: schedule exit on break 2017-10-05 10:19:21 +02:00
dmfilemapd makefiles: cleanups 2017-08-01 11:53:32 +02:00
lvmdbusd lvmdbusd: thread stacks dump support 2017-09-27 07:45:00 -05:00
lvmetad configure: improve test for realtime clock 2017-08-01 14:03:54 +02:00
lvmlockd lvmlockd: fix check for no running lock manager 2017-08-29 15:18:12 -05:00
lvmpolld makefiles: fixing linking 2017-08-01 11:53:30 +02:00
Makefile.in daemons: add dmfilemapd 2017-03-09 18:50:15 +00:00