2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

proc-parse: Inotify files migh have no watchee assigned

Same as eventpoll -- we might have no watchee assigned
but only inotify descriptor created.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-11-28 21:49:57 +04:00
committed by Pavel Emelyanov
parent 03d0758df3
commit fe7339570b

View File

@@ -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);