plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 0b22e9bd85861f6a3c8f0635bd4422daa84343eb
parent 65da85988972c1b29901ae89c1256f9f95974df3
Author: rsc <devnull@localhost>
Date:   Sun, 30 Jan 2005 15:59:09 +0000

handle non-zero mintag properly

Diffstat:
Msrc/libmux/mux.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libmux/mux.c b/src/libmux/mux.c @@ -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