vfs: redo locking

This commit is contained in:
Matheus
2024-08-26 21:47:23 -03:00
parent da150523ba
commit 42bda0bf92
32 changed files with 271 additions and 169 deletions
+2
View File
@@ -14,7 +14,9 @@ syscallret_t syscall_isatty(context_t *context, int fd) {
}
// mlibc expects isatty to return 1 if a terminal and 0 if not.
VOP_LOCK(file->vnode);
int e = VOP_ISATTY(file->vnode);
VOP_UNLOCK(file->vnode);
ret.errno = e;
ret.ret = e ? 0 : 1;