~kris/9p

9hist

022e3f775700a5269e780a07a35e60c7edd49284 — David du Colombier 32 years ago f3e9c5c
Plan 9 from Bell Labs 1993-12-27
1 files changed, 5 insertions(+), 0 deletions(-)

M port/qio.c
M port/qio.c => port/qio.c +5 -0
@@ 538,9 538,14 @@ qwrite(Queue *q, void *vp, int len, int nowait)
		if(nowait)
			return len;
		qlock(&q->wlock);
		if(waserror()) {
			qunlock(&q->wlock);
			nexterror();
		}
		q->state |= Qflow;
		sleep(&q->wr, qnotfull, q);
		qunlock(&q->wlock);
		poperror();
	}

	x = splhi();