diff options
| -rw-r--r-- | sys/src/9/port/chan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/9/port/chan.c b/sys/src/9/port/chan.c index 6c86aff03..203f5bcba 100644 --- a/sys/src/9/port/chan.c +++ b/sys/src/9/port/chan.c @@ -500,17 +500,16 @@ closeproc(void*) poperror(); } } + qunlock(&clunkq.q); lock(&clunkq.l); c = clunkq.head; if(c == nil){ unlock(&clunkq.l); - qunlock(&clunkq.q); pexit("no work", 1); } clunkq.head = c->next; clunkq.nclosed++; unlock(&clunkq.l); - qunlock(&clunkq.q); if(!waserror()){ devtab[c->type]->close(c); poperror(); |
