Stress copyin for the full allocated page (good for lazy lab).

This commit is contained in:
Frans Kaashoek 2019-09-21 14:20:21 -04:00
parent d940fd122d
commit 843ce77765

View file

@ -1757,7 +1757,7 @@ sbrkarg(char *s)
printf("%s: open sbrk failed\n", s);
exit(1);
}
if ((n = write(fd, a, 10)) < 0) {
if ((n = write(fd, a, PGSIZE)) < 0) {
printf("%s: write sbrk failed\n", s);
exit(1);
}