diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-04-29 21:17:07 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-04-29 21:17:07 +0200 |
commit | a2d96d47c996d3e31d5a93771c2cf91f994a5473 (patch) | |
tree | 59d9a30b6a6ffc00b801d1d93d28c0db9a79723c /sys/src/9/port/qlock.c | |
parent | b7d8431036d1fbc8d366ef9ddff5e6ab93e4bc94 (diff) |
kernel: always reset notepending in eqlock, handle forceclosefgrp in eqlocks
Diffstat (limited to 'sys/src/9/port/qlock.c')
-rw-r--r-- | sys/src/9/port/qlock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/9/port/qlock.c b/sys/src/9/port/qlock.c index df6848b97..57982b217 100644 --- a/sys/src/9/port/qlock.c +++ b/sys/src/9/port/qlock.c @@ -39,8 +39,9 @@ eqlock(QLock *q) if(up == 0) panic("eqlock"); if(up->notepending){ + up->notepending = 0; unlock(&q->use); - error(Eintr); + interrupted(); } rwstats.qlockq++; p = q->tail; @@ -57,7 +58,7 @@ eqlock(QLock *q) sched(); if(up->eql == 0){ up->notepending = 0; - error(Eintr); + interrupted(); } up->eql = 0; } |