qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Avoiding extra iterations while closing file fd


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] Avoiding extra iterations while closing file fd
Date: Thu, 13 Mar 2014 13:48:09 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Mar 12, 2014 at 10:24:27PM +0530, Pankaj Gupta wrote:
> Avoiding iterations for fd 0, 1 & 2 when we are closing file fds in child 
> process.
> 
> Signed-off-by: Pankaj Gupta <address@hidden>
> ---
>  net/tap.c | 14 ++++----------
>  1 file changed, 4 insertions(+), 10 deletions(-)

POSIX defines the values of standard in, out, and error as 0, 1, and 2
constants.  So this patch is correct but it doesn't do anything useful.
This is something compiler can optimize (but speed doesn't even matter
here).

Please try to focus on patches that fix bugs, add features, or otherwise
add value - it takes the community time to review, test, and merge
patches.

Thanks, applied to my net-next tree:
https://github.com/stefanha/qemu/commits/net-next

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]