From df9e5f39a75c3cb6ac8ddb7b89dde7b759b41545 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 26 Sep 2023 17:50:33 +0200 Subject: [PATCH] debug: correct check for failing close --- daemons/lvmlockd/lvmlockd-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c index 1261f6482..ed645cce3 100644 --- a/daemons/lvmlockd/lvmlockd-core.c +++ b/daemons/lvmlockd/lvmlockd-core.c @@ -6007,7 +6007,7 @@ static void process_listener(int poll_fd) return; if (!(cl = alloc_client())) { - if (!close(fd)) + if (close(fd)) log_error("failed to close lockd poll fd"); return; }