proc: fix deadlock after process exit
This commit is contained in:
parent
15c0de6de8
commit
a28088aea6
6 changed files with 59 additions and 17 deletions
|
|
@ -37,8 +37,7 @@ void _start()
|
|||
|
||||
if (pid == 0) {
|
||||
write(fd, "child\n", 6);
|
||||
while (1)
|
||||
;
|
||||
exit(1);
|
||||
} else {
|
||||
write(fd, "parent\n", 7);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue