clone() call working. Tested exit(), clone() and fork() mixture running about 22 threads, processes.

This commit is contained in:
Bahadir Balban
2008-11-10 17:58:33 +02:00
parent 66388a0fc3
commit 44c34026b2
8 changed files with 68 additions and 52 deletions

View File

@@ -63,7 +63,11 @@ void main(void)
}
printf("Testing clone syscall...\n");
clonetest();
if ((pid = fork()) < 0)
printf("Error forking...\n");
/* Child does the clonetest(). All of them will exit */
if (pid == 0)
clonetest();
while (1)
wait_pager(0);