]> TLD Linux GIT Repositories - packages/lvm2.git/blob - lvm2-clvmd_cmd_timeout.patch
- updated to 2.02.181
[packages/lvm2.git] / lvm2-clvmd_cmd_timeout.patch
1 diff -urp LVM2.2.02.177.orig/daemons/clvmd/clvmd.c LVM2.2.02.177/daemons/clvmd/clvmd.c
2 --- LVM2.2.02.177.orig/daemons/clvmd/clvmd.c    2017-12-18 20:44:34.000000000 +0000
3 +++ LVM2.2.02.177/daemons/clvmd/clvmd.c 2018-01-26 16:40:07.504228217 +0000
4 @@ -992,8 +992,8 @@ static void main_loop(int cmd_timeout)
5                         }
6                 }
7  
8 -               /* Select timed out. Check for clients that have been waiting too long for a response */
9 -               if (select_status == 0) {
10 +               /* Check for clients that have been waiting too long for a response */
11 +               if (select_status >= 0) {
12                         time_t the_time = time(NULL);
13  
14                         for (thisfd = &local_client_head; thisfd; thisfd = thisfd->next) {