mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
daemon-server: fix error message on daemon shutdown
If a daemon (like lvmetad that is using common daemon-server code) received a kill signal that was supposed to shut the daemon down, a spurious message was issued: "Failed to handle a client connection". This happened if the kill signal came just in the middle of waiting for a client request in "select" - the request that was supposed to be handled was blank at that moment of course.
This commit is contained in:
parent
48367c5be9
commit
8d5ae472e5
@ -1,5 +1,6 @@
|
||||
Version 2.02.97 -
|
||||
===============================
|
||||
Do not issue "Failed to handle a client connection" error if lvmetad killed.
|
||||
Support changing of discard and zeroing for thin pool.
|
||||
Report used discard for thin pool and volume.
|
||||
Add support for controlling discard behavior of thin pool.
|
||||
|
@ -510,7 +510,7 @@ void daemon_start(daemon_state s)
|
||||
if (select(FD_SETSIZE, &in, NULL, NULL, NULL) < 0 && errno != EINTR)
|
||||
perror("select error");
|
||||
if (FD_ISSET(s.socket_fd, &in))
|
||||
if (!handle_connect(s))
|
||||
if (!_shutdown_requested && !handle_connect(s))
|
||||
syslog(LOG_ERR, "Failed to handle a client connection.");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user