pthreadpool: call unshare(CLONE_FS) if available
authorRalph Boehme <slow@samba.org>
Tue, 13 Mar 2018 15:59:32 +0000 (16:59 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 24 Jul 2018 15:38:27 +0000 (17:38 +0200)
commit65e4742d168454df6507d9e74993749063435dd6
tree2b920630ffeb36972db502fe4da4c6bd06e07977
parent7cb27238fe4e6dfc45cf3128ccd4a392aaf4e877
pthreadpool: call unshare(CLONE_FS) if available

This paves the way for pthreadpool jobs that are path based.

Callers can use pthreadpool_per_thread_cwd() to check if
the current pool supports it.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

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