initial signal implementation

This commit is contained in:
Matheus
2024-05-14 15:04:48 -03:00
parent 00c212fa8d
commit 7b0cc4c51b
22 changed files with 824 additions and 55 deletions
+2 -2
View File
@@ -346,10 +346,10 @@ int vfs_lookup(vnode_t **result, vnode_t *start, char *path, char *lastcomp, int
vnode_t *derefstart = current;
if (*linkderef == '/' && _cpu()->thread && _cpu()->thread->proc) {
spinlock_acquire(&_cpu()->thread->proc->lock);
MUTEX_ACQUIRE(&_cpu()->thread->proc->mutex, false);
derefstart = _cpu()->thread->proc->root;
VOP_HOLD(derefstart);
spinlock_release(&_cpu()->thread->proc->lock);
MUTEX_RELEASE(&_cpu()->thread->proc->mutex);
} else if (*linkderef == '/') {
derefstart = vfsroot;
VOP_HOLD(derefstart);