summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/init-loop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnetfs/init-loop.c b/libnetfs/init-loop.c
index c6ca5387..00f0fa46 100644
--- a/libnetfs/init-loop.c
+++ b/libnetfs/init-loop.c
@@ -19,6 +19,7 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
#include "netfs.h"
+#include <pthread.h>
static int thread_timeout = 1000 * 60 * 2; /* two minutes */
static int server_timeout = 1000 * 60 * 10; /* ten minutes */
@@ -28,6 +29,8 @@ netfs_server_loop (void)
{
error_t err;
+ pthread_setname_np (pthread_self (), "netfs");
+
do
{
ports_manage_port_operations_multithread (netfs_port_bucket,