diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-01 05:16:41 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-01 05:16:41 +0100 |
commit | 9a98f28f1e7a4960fcc24e12317265250795d99b (patch) | |
tree | 319239a8d94fc12fa472aa8c11ba0d7e32af3568 /sys/src/9/port/pgrp.c | |
parent | f481ac716d3fd3320ddf0672b395cf374a41a1dd (diff) |
kernel: remove error label in pgrpnote() arround postnote
postnote does not raise error, so the error label is not
neccesary.
Diffstat (limited to 'sys/src/9/port/pgrp.c')
-rw-r--r-- | sys/src/9/port/pgrp.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/src/9/port/pgrp.c b/sys/src/9/port/pgrp.c index 21ac7af86..fb23b432c 100644 --- a/sys/src/9/port/pgrp.c +++ b/sys/src/9/port/pgrp.c @@ -24,20 +24,13 @@ pgrpnote(ulong noteid, char *a, long n, int flag) memmove(buf, a, n); buf[n] = 0; p = proctab(0); - ep = p+conf.nproc; - for(; p < ep; p++) { + for(ep = p+conf.nproc; p < ep; p++) { if(p->state == Dead) continue; if(up != p && p->noteid == noteid && p->kp == 0) { qlock(&p->debug); - if(p->pid == 0 || p->noteid != noteid){ - qunlock(&p->debug); - continue; - } - if(!waserror()) { + if(p->pid != 0 && p->noteid == noteid) postnote(p, 0, buf, flag); - poperror(); - } qunlock(&p->debug); } } |