Commit 0196d30a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

eventpoll, inotify: Don't fail on watchees absence

In case if eventpoll or inotify just created but
not watchee added we should not fail.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a67d0cb2
......@@ -125,7 +125,7 @@ static int dump_one_eventpoll(int lfd, u32 id, const struct fd_parms *p)
tok = strstr(buf, "tfd:");
if (!tok)
goto parsing_err;
return 0;
tok = strtok(tok, "\n");
while (tok) {
......
......@@ -168,7 +168,7 @@ static int dump_one_inotify(int lfd, u32 id, const struct fd_parms *p)
pos = strstr(fdinfo_buf, "wd:");
if (!pos)
goto parse_error;
return 0;
tok = strtok(pos, "\n");
while (tok) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment