entry: improve control flow for syscalls

This commit is contained in:
Michael Shaw 2025-02-09 19:46:08 -05:00
commit e3ea41d297
2 changed files with 15 additions and 64 deletions

View file

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