summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-01-30 06:26:03 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2013-01-30 06:26:03 +0100
commitdbbbff89151794c838319e831254bcff6b3dbbcf (patch)
tree9efcb6002cfa8df32db861ab4c44f64b857efcd1 /sys/include
parentbc0e5ffa2293526ed3cf65a025263d2599c1f331 (diff)
lib9p: defer closing down srv until the last request has been responded, Tversion message size
in multithreaded programs, we have to wait until all outstanding requests have been responded before closing down the srv. dont make write errors sysfatal(), only print them. in case if listensrv() is used we dont want to exit the process in respond() called by some worker thread. make sure Tversion is only handled when there are no outstanding requests and make sure message size is sane.
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/9p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/9p.h b/sys/include/9p.h
index a8fb1fdc1..27bec9b9a 100644
--- a/sys/include/9p.h
+++ b/sys/include/9p.h
@@ -234,6 +234,7 @@ struct Srv {
QLock slock;
Ref sref;
+ Ref rref;
};
void srv(Srv*);