From a0a28a6ac3005ec320ef73066e57d9ae1fd41754 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Sat, 26 Jan 2013 22:40:32 +0000 Subject: [PATCH] xfs_fsr: remove extraneous close() in fsrallfs() After the fork(), the parent does a close(fd); on an fd which is long-since closed (prior to the while loop). Just remove it. Signed-off-by: Eric Sandeen Reviewed-by: Mark Tinguely Signed-off-by: Mark Tinguely --- fsr/xfs_fsr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c index 5eaabb529..3d017ca35 100644 --- a/fsr/xfs_fsr.c +++ b/fsr/xfs_fsr.c @@ -627,7 +627,6 @@ fsrallfs(char *mtab, int howlong, char *leftofffile) break; default: wait(&error); - close(fd); if (WIFEXITED(error) && WEXITSTATUS(error) == 1) { /* child timed out & did fsrall_cleanup */ exit(0); -- 2.47.2