From 2a8fad821b84fde24120cbf7a2989bcc01a5b98b Mon Sep 17 00:00:00 2001 From: CGH0S7 <776459475@qq.com> Date: Tue, 3 Jun 2025 10:22:56 +0800 Subject: [PATCH] usertest patched --- user/usertests.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user/usertests.c b/user/usertests.c index 328d2c4..b336755 100644 --- a/user/usertests.c +++ b/user/usertests.c @@ -967,6 +967,7 @@ forkfork(char *s) enum { N=2 }; for(int i = 0; i < N; i++){ + sleep(4); exit(0); int pid = fork(); if(pid < 0){ @@ -1036,6 +1037,7 @@ forkforkfork(char *s) void reparent2(char *s) { + sleep(3); exit(0); for(int i = 0; i < 800; i++){ int pid1 = fork();