From dbbbff89151794c838319e831254bcff6b3dbbcf Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 30 Jan 2013 06:26:03 +0100 Subject: 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. --- sys/include/9p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include/9p.h') 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*); -- cgit v1.2.3