From 022e3f775700a5269e780a07a35e60c7edd49284 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 27 Dec 1993 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1993-12-27 --- port/qio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/port/qio.c b/port/qio.c index e0dbf549e8081ef23c58c7911a17f26f208474d0..51068ca2e664de8af48ecb63e49cd0cb72c24860 100644 --- a/port/qio.c +++ b/port/qio.c @@ -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();