waitpid: use events instead of semaphores

This commit is contained in:
Matheus
2026-04-15 16:59:37 -03:00
parent 4c56604915
commit 41ed077298
4 changed files with 22 additions and 13 deletions
+1 -1
View File
@@ -31,6 +31,7 @@ typedef struct proc_t {
struct proc_t *sibling;
struct proc_t *parent;
struct proc_t *child;
eventheader_t child_exit_event;
pid_t pid;
cred_t cred;
spinlock_t threadlistlock;
@@ -46,7 +47,6 @@ typedef struct proc_t {
vnode_t *cwd;
vnode_t *root;
spinlock_t nodeslock;
semaphore_t waitsem;
spinlock_t exiting;
int nice;