diff options
| -rw-r--r-- | sys/src/9/port/chan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/9/port/chan.c b/sys/src/9/port/chan.c index 6adb7f072..266c6f935 100644 --- a/sys/src/9/port/chan.c +++ b/sys/src/9/port/chan.c @@ -194,6 +194,8 @@ chandevreset(void) devtab[i]->reset(); } +static void closeproc(void*); + void chandevinit(void) { @@ -201,6 +203,7 @@ chandevinit(void) for(i=0; devtab[i] != nil; i++) devtab[i]->init(); + kproc("closeproc", closeproc, nil); } void @@ -506,6 +509,8 @@ closeproc(void*) c = clunkq.head; if(c == nil){ unlock(&clunkq.l); + if(canqlock(&clunkq.q)) + continue; pexit("no work", 1); } clunkq.head = c->next; |
