ignore spurious sigchilds on sunos

This commit is contained in:
rsc 2005-01-07 17:06:01 +00:00
parent 005a85f3a2
commit e45084490f

View file

@ -314,8 +314,16 @@ hangupnote(void *a, char *msg)
noted(NDFLT); noted(NDFLT);
} }
if(strstr(msg, "child")){ if(strstr(msg, "child")){
/* bug: do better */ char buf[128];
threadexitsall(0); int n;
n = awaitnohang(buf, sizeof buf-1);
if(n > 0){
buf[n] = 0;
if(atoi(buf) == rcpid)
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