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

Re: [Xen-devel] [PATCH v11 04/27] tools/libxl: Introduce new helper function dup_fd_helper()



Changlong Xie writes ("[PATCH v11 04/27] tools/libxl: Introduce new helper 
function dup_fd_helper()"):
> From: Wen Congyang <wency@xxxxxxxxxxxxxx>
> 
> It is pure refactoring and no functional changes.
...
>  /*----- helper execution -----*/
> +static int dup_fd_helper(libxl__gc *gc, int fd, const char *what)
> +{

This is a fine thing to do.  But the function name is less than
informative.  I think I would call it something like `dup_cloexec'.
The use of the term `helper' here is particularly confusing because it
also refers to the `save helper' of which this is part.

And
 - missing newline after the /*---*/ comment
 - this function should have a doc comment saying it cannot fail

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.