summaryrefslogtreecommitdiff
path: root/tmpfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-28 16:18:23 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-31 11:15:55 +0200
commitf1e305fca2b4ca79cfed6d406ceb37f3dfb59f70 (patch)
treecc9375e30afddec7f9f65433285049f38560013b /tmpfs
parenta5ca1de1eb575294dbc865a2c4ff643efc117ef4 (diff)
tmpfs: use a thread timeout
There is no need to keep all the threads around, just the master thread. * tmpfs/tmpfs (diskfs_thread_function): Use a thread timeout.
Diffstat (limited to 'tmpfs')
-rw-r--r--tmpfs/tmpfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c
index a45d3435..718c6d84 100644
--- a/tmpfs/tmpfs.c
+++ b/tmpfs/tmpfs.c
@@ -296,13 +296,14 @@ diskfs_append_args (char **argz, size_t *argz_len)
static void *
diskfs_thread_function (void *demuxer)
{
+ static int thread_timeout = 1000 * 60 * 2; /* two minutes */
error_t err;
do
{
ports_manage_port_operations_multithread (diskfs_port_bucket,
(ports_demuxer_type) demuxer,
- 0,
+ thread_timeout,
0,
0);
err = diskfs_shutdown (0);