mirror of
https://github.com/drasko/codezero.git
synced 2026-01-20 23:03:16 +01:00
clone() call working. Tested exit(), clone() and fork() mixture running about 22 threads, processes.
This commit is contained in:
@@ -61,13 +61,9 @@ struct tcb *find_task(int tid)
|
||||
{
|
||||
struct tcb *t;
|
||||
|
||||
list_for_each_entry(t, &global_tasks.list, list) {
|
||||
/* A temporary precaution */
|
||||
BUG_ON(t->tid != t->spid);
|
||||
if (t->tid == tid) {
|
||||
list_for_each_entry(t, &global_tasks.list, list)
|
||||
if (t->tid == tid)
|
||||
return t;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user