aboutsummaryrefslogtreecommitdiff
path: root/tests/test_close_failure.c
AgeCommit message (Collapse)AuthorFilesLines
2017-03-17tests: Fix test_close_failure test caseMichael Adam1-3/+1
Found by valgrind. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-02-10Avoid mutex lock wait in socket close failureAnoop C S1-0/+50
In case of absence to close a socket fd during an exit from application we try to close the same by traversing the socket_fds in swrap_destructor. But the early lock taken on libc_symbol_binding_mutex inside the destructor blocks the subsequent request for locking the same while loading libc_close within swrap_close. Also added a test case to verify this flaw in destructor. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>