diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-29 02:04:24 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-29 02:04:24 +0200 |
commit | e3e9a8509830690c1c7b68d8d62454d6408e1fcf (patch) | |
tree | af524411b48593afc2e5b01e852d78d591cd6460 /debian/patches/0012-tmpfs-use-a-thread-timeout.patch | |
parent | 51a3b0c9ab8515774faedaf8d34b04472d3989c8 (diff) |
add patch series
Diffstat (limited to 'debian/patches/0012-tmpfs-use-a-thread-timeout.patch')
-rw-r--r-- | debian/patches/0012-tmpfs-use-a-thread-timeout.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/0012-tmpfs-use-a-thread-timeout.patch b/debian/patches/0012-tmpfs-use-a-thread-timeout.patch new file mode 100644 index 00000000..b84b567d --- /dev/null +++ b/debian/patches/0012-tmpfs-use-a-thread-timeout.patch @@ -0,0 +1,36 @@ +From eaa8829ec0cd494c18f92996d439a59fc27020e5 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Wed, 28 May 2014 16:18:23 +0200 +Subject: [PATCH 12/14] 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. +--- + tmpfs/tmpfs.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c +index 5337e58..0aace25 100644 +--- a/tmpfs/tmpfs.c ++++ b/tmpfs/tmpfs.c +@@ -294,13 +294,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); +-- +2.0.0.rc2 + |