[CRIU] Re: [PATCH 2/8] util: Extend reopen_fd_as_safe

Pavel Emelyanov xemul at parallels.com
Mon Apr 16 04:35:56 EDT 2012


On 04/12/2012 07:50 PM, Cyrill Gorcunov wrote:
> 
> Our loggin engine prints file:line only at invoke point,
> so it's unable to see where exactly reopen_fd_as_safe is
> failed.
> 
> With this patch the output is more human readable
> 
>  | Error (util.c:96): fd 7 already in use (called at files.c:359)
> 
> Ideally we need full backtrace here, but it's different task.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  include/util.h |    6 +++---
>  util.c         |   11 +++++++----
>  2 files changed, 10 insertions(+), 7 deletions(-)
> 

Applied


More information about the CRIU mailing list