From 9ad4a7b89a7665d321866300012cad1b885aefcf Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Fri, 6 Apr 2018 20:10:05 +0200 Subject: [PATCH] Exit idleMonitor thread when it has finished Could help debugging, see #470 --- encfs/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/encfs/main.cpp b/encfs/main.cpp index 5d7f8bf..9d40441 100644 --- a/encfs/main.cpp +++ b/encfs/main.cpp @@ -850,7 +850,6 @@ static void *idleMonitor(void *_arg) { while (ctx->running) { unmountres = ctx->usageAndUnmount(timeoutCycles); if (unmountres) { - pthread_cond_wait(&ctx->wakeupCond, &ctx->wakeupMutex); break; }