handle interrupts and backgrounded processes a little better.
This commit is contained in:
parent
25e0e4f334
commit
69ab5d3d49
3 changed files with 11 additions and 1 deletions
|
|
@ -386,7 +386,13 @@ notifyf(void *unused0, char *s)
|
|||
int i;
|
||||
for(i=0;syssigname[i];i++)
|
||||
if(strncmp(s, syssigname[i], strlen(syssigname[i]))==0){
|
||||
if(strncmp(s, "sys: ", 5)!=0) interrupted=1;
|
||||
if(strncmp(s, "sys: ", 5)!=0){
|
||||
if(kidpid && !interrupted){
|
||||
interrupted=1;
|
||||
postnote(PNGROUP, kidpid, s);
|
||||
}
|
||||
interrupted = 1;
|
||||
}
|
||||
goto Out;
|
||||
}
|
||||
if(strcmp(s, "sys: child") != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue