merge
This commit is contained in:
commit
0e242236ba
2 changed files with 10 additions and 1 deletions
|
@ -29,7 +29,7 @@ pgrpnote(ulong noteid, char *a, long n, int flag)
|
|||
continue;
|
||||
if(up != p && p->noteid == noteid && p->kp == 0) {
|
||||
qlock(&p->debug);
|
||||
if(p->pid != 0 && p->noteid == noteid)
|
||||
if(p->noteid == noteid)
|
||||
postnote(p, 0, buf, flag);
|
||||
qunlock(&p->debug);
|
||||
}
|
||||
|
|
|
@ -903,9 +903,18 @@ postnote(Proc *p, int dolock, char *n, int flag)
|
|||
int s, ret;
|
||||
QLock *q;
|
||||
|
||||
if(p == nil)
|
||||
return 0;
|
||||
|
||||
if(dolock)
|
||||
qlock(&p->debug);
|
||||
|
||||
if(p->pid == 0){
|
||||
if(dolock)
|
||||
qunlock(&p->debug);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(n != nil && flag != NUser && (p->notify == 0 || p->notified))
|
||||
p->nnote = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue