uwrap: Support scenario where threads fork or creates threads.
authorRobin Hack <hack.robin@gmail.com>
Fri, 23 Jan 2015 14:30:30 +0000 (15:30 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 28 Jan 2015 16:17:08 +0000 (17:17 +0100)
commit99a9855d38d8bfaec5bd03b8aaeca01cefa22b00
tree3846a2381b841fee2aa4b983bdf0bfaea5ddc945
parenta5b70c0e5fe70fe69e5294ddeadd8981dda9afb0
uwrap: Support scenario where threads fork or creates threads.

When fork() is called here there is no need to disable uwrap as a whole.
This change disables only uwrap for the thread which called fork().

uwrap catches calls of pthread_create() and pthread_exit() functions
from libpthread library now.

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

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/uid_wrapper/uid_wrapper.c