proc: fix deadlock after process exit

This commit is contained in:
Michael Shaw 2025-02-12 09:57:44 -05:00
commit a28088aea6
6 changed files with 59 additions and 17 deletions

View file

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