[CRIU] [PATCH] fsnotify: fix exit code of dump_inotify_entry()
Pavel Emelyanov
xemul at parallels.com
Tue Sep 2 06:58:42 PDT 2014
On 09/02/2014 05:55 PM, Andrey Vagin wrote:
> Return 0 in a success case
>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
> fsnotify.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/fsnotify.c b/fsnotify.c
> index 98e0055..c9373c7 100644
> --- a/fsnotify.c
> +++ b/fsnotify.c
> @@ -212,8 +212,7 @@ static int dump_inotify_entry(union fdinfo_entries *e, void *arg)
> if (check_open_handle(we->s_dev, we->i_ino, we->f_handle))
> goto out;
>
> - if (pb_write_one(fdset_fd(glob_fdset, CR_FD_INOTIFY_WD), we, PB_INOTIFY_WD))
> - goto out;
> + ret = pb_write_one(fdset_fd(glob_fdset, CR_FD_INOTIFY_WD), we, PB_INOTIFY_WD);
> out:
> free_inotify_wd_entry(e);
> return ret;
>
applied, thanks
More information about the CRIU
mailing list