src/socket_wrapper.c: fix mutex fork handling
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Jan 2021 12:14:41 +0000 (13:14 +0100)
committerAndreas Schneider <asn@samba.org>
Fri, 29 Jan 2021 07:42:31 +0000 (08:42 +0100)
commit0f8e90dd7e59c473be615dee08d445dca98fdab9
treeae26b59bdc9b60eb10b3b503372f4f9b3852a5fe
parentc0fb86a71418dc8610089434fda4effbc99b4c12
src/socket_wrapper.c: fix mutex fork handling

We need to use pthread_mutex_init in the child handler...
See https://sourceware.org/bugzilla/show_bug.cgi?id=2745

Valgrind tools like helgrind and drd don't understand this
(at least in 3.15.0), they require a pthread_mutex_unlock()
in the child in order work.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
.gitlab-ci.yml
src/socket_wrapper.c