add signal api
This commit is contained in:
@ -49,6 +49,9 @@ struct task *create_task(uint8_t uid)
|
||||
new_task->next = current_task->next;
|
||||
new_task->prev = current_task;
|
||||
current_task->next = new_task;
|
||||
|
||||
new_task->signals.pending = SIG_IGN;
|
||||
|
||||
return new_task;
|
||||
}
|
||||
|
||||
@ -64,6 +67,7 @@ int8_t create_kernel_task(void)
|
||||
new_task->cr3 = (uint32_t *)((uint32_t)kernel_pd - HEAP_END);
|
||||
new_task->prev = new_task;
|
||||
new_task->next = new_task;
|
||||
new_task->signals.pending = SIG_IGN;
|
||||
current_task = new_task;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user