Skip to contentSkip to conversation

dev-mornfall-lvmcache - clvmd: use pclose

PATCH Petr Rockai 1 participant 1 message Jun 5, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=61d0ae7019aa14d78678a36f1eeb43b29a113e80
Commit:        61d0ae7019aa14d78678a36f1eeb43b29a113e80
Parent:        0125518d6d0a0fce63998fc898c203255ad73700
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Apr 21 11:30:50 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Apr 21 22:56:59 2013 +0200

clvmd: use pclose

For popened FILE use pclose.

---
 daemons/clvmd/lvm-functions.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
daemons/clvmd/lvm-functions.c +2 -2
index 416d4f0..6d78090 100644
@@ -772,8 +772,8 @@ static int get_initial_state(struct dm_hash_table *excl_uuid)
 			}
 		}
 	}
-	if (fclose(lvs))
-		DEBUGLOG("lvs fclose failed: %s\n", strerror(errno));
+	if (pclose(lvs))
+		DEBUGLOG("lvs pclose failed: %s\n", strerror(errno));
 
 	dm_free(lvs_cmd);