entry: improve control flow for syscalls
This commit is contained in:
parent
2ff8fc60d0
commit
e3ea41d297
2 changed files with 15 additions and 64 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue