On Mon, Sep 05, 2011 at 01:20:40PM +0900, Simon Horman wrote:
> There is no need to keep null_fd open once
> it has been used by the three dup2() calls.

get_null_fd() caches the null file descriptor to return on the next
call, so this will cause the next call to get_null_fd() to return a
bad file descriptor (or one that has been reused).

It's probably not a huge win for get_null_fd() to cache the null file
descriptor, so if you want to change that semantic it would be OK with
me, but as-is I think that this patch would break things (specifically
process_start()).

Thanks,

Ben.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to