vfs: refcount file structs used in fdescs
This commit is contained in:
parent
744c3b266f
commit
02c0a70a30
5 changed files with 22 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue