diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-07-16 17:17:59 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2018-07-24 17:38:26 +0200 |
commit | 26b35cb20c604afa6db19912e3ff43978dbece61 (patch) | |
tree | a2723040dc0f2537b70d9a8fbe2fd3945ed8b7b3 /lib/pthreadpool | |
parent | 9d31bbf9793ca9d2041eb8769511aca6c9684e94 (diff) | |
download | samba-26b35cb20c604afa6db19912e3ff43978dbece61.tar.gz |
pthreadpool: make sure a pthreadpool is marked as stopped in child processes
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'lib/pthreadpool')
-rw-r--r-- | lib/pthreadpool/pthreadpool.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |