ignore spurious sigchilds on sunos
This commit is contained in:
parent
005a85f3a2
commit
e45084490f
1 changed files with 10 additions and 3 deletions
|
|
@ -314,9 +314,17 @@ hangupnote(void *a, char *msg)
|
||||||
noted(NDFLT);
|
noted(NDFLT);
|
||||||
}
|
}
|
||||||
if(strstr(msg, "child")){
|
if(strstr(msg, "child")){
|
||||||
/* bug: do better */
|
char buf[128];
|
||||||
|
int n;
|
||||||
|
|
||||||
|
n = awaitnohang(buf, sizeof buf-1);
|
||||||
|
if(n > 0){
|
||||||
|
buf[n] = 0;
|
||||||
|
if(atoi(buf) == rcpid)
|
||||||
threadexitsall(0);
|
threadexitsall(0);
|
||||||
}
|
}
|
||||||
|
noted(NCONT);
|
||||||
|
}
|
||||||
noted(NDFLT);
|
noted(NDFLT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1520,7 +1528,6 @@ backnl(uint p, uint n)
|
||||||
return p;
|
return p;
|
||||||
p--;
|
p--;
|
||||||
}
|
}
|
||||||
return 0; /* alef bug */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue