<div dir="ltr">Please ignore this, sent the old one again. Sorry for the noise. I am new to sending patches over the mailing list. :)<div><br></div><div>Thanks,</div><div>Andrei</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-28 14:31 GMT+03:00 Andrei Tuicu <span dir="ltr"><<a href="mailto:andrei.tuicu@gmail.com" target="_blank">andrei.tuicu@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">CRIU fails to dump processes that have a file descriptor pointing<br>
to the /proc folder, because check_path_remap returns error code<br>
in that case. Fix: return 0 instead.<br>
<br>
Signed-off-by: Andrei Tuicu <<a href="mailto:andrei.tuicu@gmail.com">andrei.tuicu@gmail.com</a>><br>
---<br>
criu/files-reg.c | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/criu/files-reg.c b/criu/files-reg.c<br>
index 899dcf6..0fcef6d 100644<br>
--- a/criu/files-reg.c<br>
+++ b/criu/files-reg.c<br>
@@ -975,8 +975,8 @@ static int check_path_remap(struct fd_link *link, const struct fd_parms *parms,<br>
if (!start)<br>
return -1;<br>
start = strstr(start + 1, "/");<br>
- if (!start)<br>
- return -1;<br>
+ if (!start) /* it's /proc */<br>
+ return 0;<br>
pid = strtol(start + 1, &end, 10);<br>
<br>
/* If strtol didn't convert anything, then we are looking at<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.4 (Apple Git-61)<br>
<br>
</font></span></blockquote></div><br></div>