[CRIU] [PATCH] proc-parse: Inotify files migh have no watchee assigned

Pavel Emelyanov xemul at parallels.com
Wed Nov 28 12:50:08 EST 2012


On 11/28/2012 06:12 PM, Cyrill Gorcunov wrote:
> Same as eventpoll -- we might have no watchee assigned
> but only inotify descriptor created.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  proc_parse.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/proc_parse.c b/proc_parse.c
> index c075c03..e26639c 100644
> --- a/proc_parse.c
> +++ b/proc_parse.c
> @@ -935,10 +935,10 @@ int parse_fdinfo(int fd, int type,
>  	if (entry_met)
>  		return 0;
>  	/*
> -	 * An eventpoll file may have no target fds set thus
> +	 * An eventpoll/inotify file may have no target fds set thus
>  	 * resulting in no tfd: lines in proc. This is normal.
>  	 */
> -	if (type == FD_TYPES__EVENTPOLL)
> +	if (type == FD_TYPES__EVENTPOLL || type == FD_TYPES__INOTIFY)
>  		return 0;
>  
>  	pr_err("No records of type %d found in fdinfo file\n", type);
> 


APplied


More information about the CRIU mailing list