kbdfs: fix queue bug
This commit is contained in:
parent
b932aaeafc
commit
77481acf05
1 changed files with 19 additions and 19 deletions
|
@ -653,17 +653,16 @@ reqproc(void *aux)
|
||||||
if(0){
|
if(0){
|
||||||
case ASTR:
|
case ASTR:
|
||||||
p = s;
|
p = s;
|
||||||
} else if(s == nil)
|
}
|
||||||
continue;
|
|
||||||
if((r = q) == nil)
|
while(s && q){
|
||||||
continue;
|
r = q;
|
||||||
if((q = q->aux) == nil)
|
if((q = q->aux) == nil)
|
||||||
qq = &q;
|
qq = &q;
|
||||||
|
|
||||||
e = s + strlen(s);
|
e = s + strlen(s);
|
||||||
if(p == s && r->fid->qid.path == Qkbd)
|
if(p == s && r->fid->qid.path == Qkbd)
|
||||||
e++; /* send terminating \0 if its kbd file */
|
e++; /* send terminating \0 if its kbd file */
|
||||||
|
|
||||||
n = e - p;
|
n = e - p;
|
||||||
if(n > r->ifcall.count)
|
if(n > r->ifcall.count)
|
||||||
n = r->ifcall.count;
|
n = r->ifcall.count;
|
||||||
|
@ -680,6 +679,7 @@ reqproc(void *aux)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Keep track of rawing state and distribute the runes from
|
* Keep track of rawing state and distribute the runes from
|
||||||
|
|
Loading…
Reference in a new issue