Changlong Xie writes ("[PATCH v11 04/27] tools/libxl: Introduce new helper
function dup_fd_helper()"):
> From: Wen Congyang <[email protected]>
>
> 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
[email protected]
http://lists.xen.org/xen-devel