pthreadpool: we need to use pthreadpool_tevent_per_thread_cwd() on the callers pool
authorStefan Metzmacher <metze@samba.org>
Thu, 26 Jul 2018 07:41:22 +0000 (09:41 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 27 Jul 2018 11:07:14 +0000 (13:07 +0200)
commitff863f2d98ac5e12073af824b794404c3d7198c5
tree107545e74bffa2462ff476fcff6838fffb5fca7d
parent591d72f9c7981350eba19221398dbe7bcf0c098b
pthreadpool: we need to use pthreadpool_tevent_per_thread_cwd() on the callers pool

In pthreadpool_tevent_job_send() we remember if the job will be chdir
safe. It means we means we need to ask the callers pool when calling
pthreadpool_tevent_per_thread_cwd(), as the callers pool might
be a wrapper using pthreadpool_tevent_force_per_thread_cwd().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/pthreadpool/pthreadpool_tevent.c