kbdfs: simplfy
parent
77481acf05
commit
1da8475093
|
@ -617,15 +617,18 @@ reqproc(void *aux)
|
||||||
qq = &q;
|
qq = &q;
|
||||||
|
|
||||||
ac = aux;
|
ac = aux;
|
||||||
|
a[AREQ].op = CHANRCV;
|
||||||
a[AREQ].c = ac[0]; /* chan(Req*) */
|
a[AREQ].c = ac[0]; /* chan(Req*) */
|
||||||
a[AREQ].v = &r;
|
a[AREQ].v = &r;
|
||||||
|
|
||||||
a[ASTR].c = ac[1]; /* chan(char*) */
|
a[ASTR].c = ac[1]; /* chan(char*) */
|
||||||
a[ASTR].v = &s;
|
a[ASTR].v = &s;
|
||||||
|
|
||||||
a[AEND].op = CHANEND;
|
a[AEND].op = CHANEND;
|
||||||
|
|
||||||
for(;;){
|
for(;;){
|
||||||
a[AREQ].op = CHANRCV;
|
a[ASTR].op = s ? CHANNOP : CHANRCV;
|
||||||
a[ASTR].op = (q != nil && s == nil) ? CHANRCV : CHANNOP;
|
|
||||||
switch(alt(a)){
|
switch(alt(a)){
|
||||||
case AREQ:
|
case AREQ:
|
||||||
if(r->ifcall.type == Tflush){
|
if(r->ifcall.type == Tflush){
|
||||||
|
|
Loading…
Reference in New Issue