~kris/9p

9hist

1edfe8043003c5ccf6784073f3dd5ece39bc1464 — David du Colombier 35 years ago 058b4df
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);
			}