[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 15/87: tmpfs: use a thread timeout
From: |
Samuel Thibault |
Subject: |
[hurd] 15/87: tmpfs: use a thread timeout |
Date: |
Sun, 09 Nov 2014 11:05:00 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit f1e305fca2b4ca79cfed6d406ceb37f3dfb59f70
Author: Justus Winter <address@hidden>
Date: Wed May 28 16:18:23 2014 +0200
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 a45d343..718c6d8 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);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (55dd7de -> e4a9a4d), Samuel Thibault, 2014/11/09
- [hurd] 15/87: tmpfs: use a thread timeout,
Samuel Thibault <=
- [hurd] 19/87: libdiskfs: use correct type for disk offsets, Samuel Thibault, 2014/11/09
- [hurd] 26/87: Merge the random translator into the Hurd repository, Samuel Thibault, 2014/11/09
- [hurd] 22/87: ext2fs: use size_t where appropriate, Samuel Thibault, 2014/11/09
- [hurd] 14/87: Merge branch 'random' of ssh://git.savannah.gnu.org/srv/git/hurd/incubator into random, Samuel Thibault, 2014/11/09
- [hurd] 28/87: term: improve the demuxer, Samuel Thibault, 2014/11/09
- [hurd] 27/87: Add the random translator to prog-subdirs, Samuel Thibault, 2014/11/09
- [hurd] 33/87: Merge procfs into the Hurd repository, Samuel Thibault, 2014/11/09
- [hurd] 34/87: Add the procfs translator to prog-subdirs, Samuel Thibault, 2014/11/09
- [hurd] 36/87: ftpfs: fix error handling in refresh_dir, Samuel Thibault, 2014/11/09
- [hurd] 29/87: hurd: fix receiver lookup in termctty_open_terminal, Samuel Thibault, 2014/11/09