| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 8/8] xfs_fsr: remove extraneous close() in fsrallfs() |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Sat, 26 Jan 2013 16:40:32 -0600 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1359240032-11576-1-git-send-email-sandeen@xxxxxxxxxx> |
| References: | <1359240032-11576-1-git-send-email-sandeen@xxxxxxxxxx> |
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@xxxxxxxxxx>
---
fsr/xfs_fsr.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c
index 5eaabb5..3d017ca 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);
--
1.7.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 5/8] xfs_fsr: guard against path string overflows, Eric Sandeen |
|---|---|
| Next by Date: | [PATCH 2/8] libxfs: initialize xfs_alloc_arg structures, Eric Sandeen |
| Previous by Thread: | [PATCH 5/8] xfs_fsr: guard against path string overflows, Eric Sandeen |
| Next by Thread: | [PATCH 2/8] libxfs: initialize xfs_alloc_arg structures, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |