Plan 9 from Bell Labs 1991-03-13
1 files changed, 8 insertions(+), 5 deletions(-) M port/devlance.c
M port/devlance.c => port/devlance.c +8 -5
@@ 826,11 826,14 @@ lancekproc(void *arg) /* * The lock on e makes sure the queue is still there. */ bp = allocb(len); memcpy(bp->rptr, (uchar *)p, len); bp->wptr += len; bp->flags |= S_DELIM; PUTNEXT(e->q, bp); if(!waserror()){ bp = allocb(len); memcpy(bp->rptr, (uchar *)p, len); bp->wptr += len; bp->flags |= S_DELIM; PUTNEXT(e->q, bp); poperror(); } qunlock(e); }