mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
9940c2f754
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. |
||
---|---|---|
.. | ||
plugins | ||
.exported_symbols | ||
.gitignore | ||
dmeventd.c | ||
dmeventd.h | ||
libdevmapper-event.c | ||
libdevmapper-event.h | ||
libdevmapper-event.pc.in | ||
Makefile.in |