Re: [PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-25 Thread Zhi Yong Wu
On Tue, Sep 25, 2012 at 6:12 PM, David Sterba wrote: > On Tue, Sep 25, 2012 at 10:02:15AM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Need to close fd on exit. > > Strictly you don't need to, kernel will do that at exit() time. I know, but it is not so nice. > > david --

Re: [PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-25 Thread David Sterba
On Tue, Sep 25, 2012 at 10:02:15AM +0800, zwu.ker...@gmail.com wrote: > From: Zhi Yong Wu > > Need to close fd on exit. Strictly you don't need to, kernel will do that at exit() time. david -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-25 Thread David Sterba
On Tue, Sep 25, 2012 at 10:02:15AM +0800, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Need to close fd on exit. Strictly you don't need to, kernel will do that at exit() time. david -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: [PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-25 Thread Zhi Yong Wu
On Tue, Sep 25, 2012 at 6:12 PM, David Sterba d...@jikos.cz wrote: On Tue, Sep 25, 2012 at 10:02:15AM +0800, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Need to close fd on exit. Strictly you don't need to, kernel will do that at exit() time. I know, but it is

[PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-24 Thread zwu . kernel
From: Zhi Yong Wu Need to close fd on exit. Signed-off-by: Zhi Yong Wu --- cmds-filesystem.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index b1457de..e62c4fd 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c

[PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-24 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Need to close fd on exit. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- cmds-filesystem.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index b1457de..e62c4fd 100644

[PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-05 Thread Zhi Yong Wu
Need to close fd on exit. Signed-off-by: Zhi Yong Wu --- cmds-filesystem.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index b1457de..e62c4fd 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -77,18 +77,23 @@

[PATCH v2 1/2] btrfs-progs: Close file descriptor on exit

2012-09-05 Thread Zhi Yong Wu
Need to close fd on exit. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- cmds-filesystem.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index b1457de..e62c4fd 100644 --- a/cmds-filesystem.c +++