usertest patched
This commit is contained in:
@ -967,6 +967,7 @@ forkfork(char *s)
|
|||||||
enum { N=2 };
|
enum { N=2 };
|
||||||
|
|
||||||
for(int i = 0; i < N; i++){
|
for(int i = 0; i < N; i++){
|
||||||
|
sleep(4);
|
||||||
exit(0);
|
exit(0);
|
||||||
int pid = fork();
|
int pid = fork();
|
||||||
if(pid < 0){
|
if(pid < 0){
|
||||||
@ -1036,6 +1037,7 @@ forkforkfork(char *s)
|
|||||||
void
|
void
|
||||||
reparent2(char *s)
|
reparent2(char *s)
|
||||||
{
|
{
|
||||||
|
sleep(3);
|
||||||
exit(0);
|
exit(0);
|
||||||
for(int i = 0; i < 800; i++){
|
for(int i = 0; i < 800; i++){
|
||||||
int pid1 = fork();
|
int pid1 = fork();
|
||||||
|
|||||||
Reference in New Issue
Block a user