vfs: refcount file structs used in fdescs

This commit is contained in:
Michael Shaw 2024-08-21 15:44:50 -04:00
commit 02c0a70a30
5 changed files with 22 additions and 4 deletions

View file

@ -38,7 +38,9 @@ void _start()
write(fd, "attempting to fork\n", 19);
if (fork() == 0) {
write(fd, "child\n", 6);
exit(0);
while (1)
;
} else {
write(fd, "parent\n", 7);
}