mirror of
https://github.com/drasko/codezero.git
synced 2026-03-01 02:03:29 +01:00
clone() call working. Tested exit(), clone() and fork() mixture running about 22 threads, processes.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user