handle non-zero mintag properly
This commit is contained in:
parent
65da859889
commit
0b22e9bd85
1 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ muxrpc(Mux *mux, void *tx)
|
||||||
qunlock(&mux->lk);
|
qunlock(&mux->lk);
|
||||||
p = _muxrecv(mux);
|
p = _muxrecv(mux);
|
||||||
if(p)
|
if(p)
|
||||||
tag = mux->gettag(mux, p);
|
tag = mux->gettag(mux, p) - mux->mintag;
|
||||||
else
|
else
|
||||||
tag = ~0;
|
tag = ~0;
|
||||||
//print("mux tag %d\n", tag);
|
//print("mux tag %d\n", tag);
|
||||||
|
|
@ -171,7 +171,7 @@ Found:
|
||||||
mux->nwait++;
|
mux->nwait++;
|
||||||
mux->wait[i] = r;
|
mux->wait[i] = r;
|
||||||
r->tag = i+mux->mintag;
|
r->tag = i+mux->mintag;
|
||||||
return i;
|
return r->tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue