Fix for eof.

This commit is contained in:
Naoki Hamada
2014-09-05 17:15:54 +09:00
parent a06e5eb47e
commit 95781d59e3

View File

@@ -292,6 +292,9 @@ void process_procfs_request(unsigned long rarg)
}
memcpy((void *)buf, ((char *) proc->saved_auxv) + r->offset, len);
ans = len;
if (r->offset + len == limit) {
eof = 1;
}
}
goto end;
}