diff options
author | rsc <devnull@localhost> | 2005-01-30 15:59:09 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-30 15:59:09 +0000 |
commit | 0b22e9bd85861f6a3c8f0635bd4422daa84343eb (patch) | |
tree | b497ad0b0da7c10f32762ec5db6cf7c85d1f96fb /src/libmux | |
parent | 65da85988972c1b29901ae89c1256f9f95974df3 (diff) | |
download | plan9port-0b22e9bd85861f6a3c8f0635bd4422daa84343eb.tar.gz plan9port-0b22e9bd85861f6a3c8f0635bd4422daa84343eb.tar.bz2 plan9port-0b22e9bd85861f6a3c8f0635bd4422daa84343eb.zip |
handle non-zero mintag properly
Diffstat (limited to 'src/libmux')
-rw-r--r-- | src/libmux/mux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmux/mux.c b/src/libmux/mux.c index c225d86b..f8620141 100644 --- 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 |