mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 00:08:30 +00:00
Iterate more on recent changes
This commit is contained in:
parent
7138399f96
commit
d0ad2694ed
22 changed files with 90 additions and 158 deletions
|
@ -157,8 +157,12 @@ static textwindows int __proc_wait(int pid, int *wstatus, int options,
|
|||
|
||||
// check if killed or win32 error
|
||||
if (wi) {
|
||||
if (pr && !--pr->waiters && pr->status == PROC_UNDEAD) {
|
||||
__proc_free(pr);
|
||||
if (pr) {
|
||||
if (!--pr->waiters && pr->status == PROC_UNDEAD) {
|
||||
__proc_free(pr);
|
||||
}
|
||||
} else {
|
||||
--__proc.waiters;
|
||||
}
|
||||
__proc_unlock();
|
||||
if (wi == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue