From 4ec0e921e5fb0ff51f74840968644c66e1e4c595 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 11 Aug 2011 04:25:51 +0200 Subject: eqlock(): use eqlock when interruption is possible --- sys/src/9/port/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/9/port/log.c') diff --git a/sys/src/9/port/log.c b/sys/src/9/port/log.c index 34edda696..9ff1b9342 100644 --- a/sys/src/9/port/log.c +++ b/sys/src/9/port/log.c @@ -57,7 +57,7 @@ logread(Log *alog, void *a, ulong, long n) int i, d; char *p, *rptr; - qlock(&alog->readq); + eqlock(&alog->readq); if(waserror()){ qunlock(&alog->readq); nexterror(); -- cgit v1.2.3