From 26b35cb20c604afa6db19912e3ff43978dbece61 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Jul 2018 17:17:59 +0200 Subject: pthreadpool: make sure a pthreadpool is marked as stopped in child processes Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- lib/pthreadpool/pthreadpool.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/pthreadpool/pthreadpool.c b/lib/pthreadpool/pthreadpool.c index 610cfb02f15..528f4cdfd67 100644 --- a/lib/pthreadpool/pthreadpool.c +++ b/lib/pthreadpool/pthreadpool.c @@ -341,6 +341,7 @@ static void pthreadpool_child(void) pool->num_idle = 0; pool->head = 0; pool->num_jobs = 0; + pool->stopped = true; ret = pthread_cond_init(&pool->condvar, NULL); assert(ret == 0); -- cgit v1.2.1