From 25e6803e171fd0cbbf71f889ba2d80621e0336f3 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Thu, 19 Sep 2019 15:22:45 -0400 Subject: [PATCH] a comment --- user/usertests.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user/usertests.c b/user/usertests.c index 6fd8c29..37d61f3 100644 --- a/user/usertests.c +++ b/user/usertests.c @@ -598,6 +598,7 @@ forkforkfork(char *s) sleep(10); // one second } +// allocate all mem, free it, and allocate again void mem(char *s) { @@ -1907,7 +1908,8 @@ stacktest(char *s) exit(xstatus); } -// 1 if successful +// run each test in its own process. run returns 1 if child's exit() +// indicates success. int run(void f(char *), char *s) { int pid;