From: Eric Sandeen Date: Sat, 26 Jan 2013 22:40:32 +0000 (+0000) Subject: xfs_fsr: remove extraneous close() in fsrallfs() X-Git-Tag: v3.1.11~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0a28a6ac3005ec320ef73066e57d9ae1fd41754;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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);