syscall: implement fork fully

This commit is contained in:
Michael Shaw 2024-08-21 15:10:16 -04:00
commit 744c3b266f
4 changed files with 44 additions and 6 deletions

View file

@ -39,6 +39,8 @@ void _start()
if (fork() == 0) {
write(fd, "child\n", 6);
exit(0);
} else {
write(fd, "parent\n", 7);
}
}
}