1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-12 13:18:31 +03:00
lvm2/libdaemon
Zdenek Kabelac 61358d92cb lvmetad: fix timeout on shutdown
When lvmetad is going to be shutdown - there were 2 issue:
If there was endless stream of command contacting lvmetad - the process
would never finish - so now when we recieved  SIGTERM - we are no longer
accepting new connections and we just wait till the existing ones are
finished.

2nd. issue is that actually when we are waiting for finish of all client
threads - we basically want an usleep() and check if all threads
are already finished -  proper solution would be to singal from a thread
there is some work to do for master thread - but that would be a bigger
change and since lvmetad is no longer developed - keep the change
minimal and just use pselect() as our '1sec.' sleeping call once
we are in 'shutdown' mode.

Reported-by: wangjufeng@huawei.com
2019-09-30 13:39:44 +02:00
..
client tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
server lvmetad: fix timeout on shutdown 2019-09-30 13:39:44 +02:00
Makefile.in doc: change fsf address 2016-01-21 12:11:37 +01:00