[CRIU] Re: [PATCH 06/11] util-net: Itroduce send_fds/recv_fds routines

Pavel Emelyanov xemul at parallels.com
Wed Mar 28 14:47:13 EDT 2012


On 03/28/2012 05:36 PM, Cyrill Gorcunov wrote:
> 
> We will need these helpers to transfer file
> descriptors from dumpee to our space.
> 
> Also make send_fd/recv_fd to be a wrappers over
> send_fds/revc_fds to not duplicate the code.
> 
> Note the return code -2 is dropped from recv_x
> routines, it is never analyzed anyway.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  include/util-net.h |   21 +++++++++++-
>  util-net.c         |   89 +++++++++++++++++++++++++++++++++++++++-------------
>  2 files changed, 86 insertions(+), 24 deletions(-)
> 

This kills the whole "beautification" effort of the previous
patches. Patch send_fd and recv_fd (as they look after patch #5)
so that they just wrap parts of their bodies into for() loops
without this huge rewriting.


More information about the CRIU mailing list