1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/daemons/dmeventd
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
..
plugins libdm: use rounded float for percent print 2017-06-24 17:44:42 +02:00
.exported_symbols Add rudimentary versioning to the dmevend protocol, allowing us to detect the 2011-04-04 16:11:09 +00:00
.gitignore gitignore: Update for in-place build. 2015-07-27 13:18:35 +01:00
dmeventd.c dmeventd: schedule exit on break 2017-10-05 10:19:21 +02:00
dmeventd.h doc: change fsf address 2016-01-21 12:11:37 +01:00
libdevmapper-event.c tidy: prefer not using else after return 2017-07-20 11:18:29 +02:00
libdevmapper-event.h cleanup: avoid gcc warns 2016-04-08 20:20:16 +02:00
libdevmapper-event.pc.in Use Require.private: field for devmapper-event.pc 2010-05-11 08:47:02 +00:00
Makefile.in makefiles: fixing linking 2017-08-01 11:53:30 +02:00