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);
|
||||
p = _muxrecv(mux);
|
||||
if(p)
|
||||
tag = mux->gettag(mux, p);
|
||||
tag = mux->gettag(mux, p) - mux->mintag;
|
||||
else
|
||||
tag = ~0;
|
||||
//print("mux tag %d\n", tag);
|
||||
|
|
@ -171,7 +171,7 @@ Found:
|
|||
mux->nwait++;
|
||||
mux->wait[i] = r;
|
||||
r->tag = i+mux->mintag;
|
||||
return i;
|
||||
return r->tag;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue