bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] trans: make the mtab translator a multithreaded server


From: Justus Winter
Subject: [PATCH 1/3] trans: make the mtab translator a multithreaded server
Date: Wed, 20 Nov 2013 11:10:06 +0100

* trans/mtab.c (main): Use ports_manage_port_operations_multithread.
---
 trans/mtab.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/trans/mtab.c b/trans/mtab.c
index 250de7d..4d10632 100644
--- a/trans/mtab.c
+++ b/trans/mtab.c
@@ -233,9 +233,13 @@ main (int argc, char *argv[])
        error (4, err, "trivfs_startup");
 
       /* Launch.  */
-      ports_manage_port_operations_one_thread (control->pi.bucket,
-                                              trivfs_demuxer,
-                                              0);
+      ports_manage_port_operations_multithread (control->pi.bucket,
+                                                trivfs_demuxer,
+                                                /* idle thread timeout */
+                                                30 * 1000,
+                                                /* idle server timeout */
+                                                0,
+                                                NULL);
     }
   else
     {
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]