thandle non-zero mintag properly - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0b22e9bd85861f6a3c8f0635bd4422daa84343eb
(DIR) parent 65da85988972c1b29901ae89c1256f9f95974df3
(HTM) Author: rsc <devnull@localhost>
Date: Sun, 30 Jan 2005 15:59:09 +0000
handle non-zero mintag properly
Diffstat:
M src/libmux/mux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/libmux/mux.c b/src/libmux/mux.c
t@@ -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);
t@@ -171,7 +171,7 @@ Found:
mux->nwait++;
mux->wait[i] = r;
r->tag = i+mux->mintag;
- return i;
+ return r->tag;
}
static void