]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_fsr: remove extraneous close() in fsrallfs()
authorEric Sandeen <sandeen@redhat.com>
Sat, 26 Jan 2013 22:40:32 +0000 (22:40 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-136.americas.sgi.com>
Thu, 21 Feb 2013 16:09:11 +0000 (10:09 -0600)
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 <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
fsr/xfs_fsr.c

index 5eaabb5298d7773018f596938777743e6f774caa..3d017ca353861aa73e6aa9268b25d55f1335b64b 100644 (file)
@@ -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);